diff options
| author | Alejandro Soto <alejandro@34project.org> | 2024-02-08 14:22:36 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2024-02-08 16:19:47 -0600 |
| commit | 7a7551af0aae406aa421323c4cac7ed4a6b44624 (patch) | |
| tree | bf82e1f3c9ef8789e305820c62b7c63eb1407dd6 /home/environ.nix | |
| parent | 4bba74d5d7a752630849996f025779d4bcd708de (diff) | |
home: update for changes in 23.11
Diffstat (limited to '')
| -rw-r--r-- | home/environ.nix | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/home/environ.nix b/home/environ.nix index bbec900..5c5b102 100644 --- a/home/environ.nix +++ b/home/environ.nix @@ -1,5 +1,11 @@ { config, lib, pkgs, ... }: -with lib; { +with lib; let + symlink = config.lib.file.mkOutOfStoreSymlink; + + #TODO: No sirve, creo que por readline + devNull = symlink "/dev/null"; +in +{ config = { xdg.enable = true; @@ -7,23 +13,17 @@ with lib; { "d %t/vtmp 0700" ]; - home.file = - let - symlink = path: { source = config.lib.file.mkOutOfStoreSymlink path; }; - #TODO: No sirve, creo que por readline - devNull = symlink "/dev/null"; - in - { - "vtmp" = symlink "/run/user/${toString config.local.uid}/vtmp"; - ".units_history" = devNull; - #TODO: .calc_history - }; + home.file = { + #TODO: .calc_history + "vtmp".source = symlink "/run/user/${toString config.local.uid}/vtmp"; + ".units_history".source = devNull; + }; programs = { zsh = { enable = true; enableAutosuggestions = true; - enableSyntaxHighlighting = true; + syntaxHighlighting.enable = true; initExtra = import ./zshrc.nix pkgs; }; @@ -44,5 +44,9 @@ with lib; { ''; }; }; + + xdg.configFile."home-manager" = mkIf (!config.home.isolation.active) { + source = symlink "${config.home.homeDirectory}/nix"; + }; }; } |
