Commit 7509b1e945c4

Vincent Demeester <vincent@sbr.pm>
2019-06-27 17:38:39
profiles.zsh: add necessary source to work on nixpkgs…
… on fedora 👼 Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 49fecb6
Changed files (1)
modules
profiles
modules/profiles/zsh.nix
@@ -18,6 +18,13 @@ in
     programs.zsh = {
       enable = true;
       shellAliases = import ./aliases.shell.nix;
+      initExtra = ''
+        if [ -e /home/vincent/.nix-profile/etc/profile.d/nix.sh ]; then . /home/vincent/.nix-profile/etc/profile.d/nix.sh; fi
+      '';
+      profileExtra = ''
+        if [ -e /home/vincent/.nix-profile/etc/profile.d/nix.sh ]; then . /home/vincent/.nix-profile/etc/profile.d/nix.sh; fi
+        export NIX_PATH=$HOME/.nix-defexpr/channels:$NIX_PATH
+      '';
     };
   };
 }