diff --git a/config/profile b/config/profile new file mode 100644 index 0000000..872635e --- /dev/null +++ b/config/profile @@ -0,0 +1,3 @@ +unset __HM_SESS_VARS_SOURCED +. $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh +. $HOME/.nix-profile/etc/profile.d/nix.sh \ No newline at end of file diff --git a/home.nix b/home.nix index 5d7257c..313f365 100644 --- a/home.nix +++ b/home.nix @@ -43,6 +43,8 @@ # plain files is through 'home.file'. home.file = { ".cargo/config".source = ./config/cargo-config; + ".profile".source = ./config/profile; + ".bashrc".text = "source .profile"; }; # You can also manage environment variables but you will have to manually diff --git a/programs.nix b/programs.nix index 3a32d89..abc7086 100644 --- a/programs.nix +++ b/programs.nix @@ -1,5 +1,5 @@ { lib, config, ... }: { - programs = { + programs = { ssh = { enable = true; matchBlocks = { @@ -43,8 +43,8 @@ theme = "fishy"; }; - initExtra = lib.optionalString (config.home.sessionPath != [ ]) '' - export PATH="$PATH''${PATH:+:}${lib.concatStringsSep ":" config.home.sessionPath}" + profileExtra = '' + source .profile ''; }; };