From 3618caefd636af95feb52c7de979d1e7fdab89cb Mon Sep 17 00:00:00 2001 From: Sense T Date: Fri, 7 Jul 2023 06:05:49 +0000 Subject: [PATCH] profile update --- config/profile | 3 +++ home.nix | 2 ++ programs.nix | 6 +++--- 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 config/profile 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 ''; }; };