diff options
Diffstat (limited to 'home')
| -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"; + }; }; } |
