profile update

This commit is contained in:
Sense T 2023-07-07 06:05:49 +00:00
parent 505e65b7e6
commit 3618caefd6
3 changed files with 8 additions and 3 deletions

3
config/profile Normal file
View File

@ -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

View File

@ -43,6 +43,8 @@
# plain files is through 'home.file'. # plain files is through 'home.file'.
home.file = { home.file = {
".cargo/config".source = ./config/cargo-config; ".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 # You can also manage environment variables but you will have to manually

View File

@ -1,5 +1,5 @@
{ lib, config, ... }: { { lib, config, ... }: {
programs = { programs = {
ssh = { ssh = {
enable = true; enable = true;
matchBlocks = { matchBlocks = {
@ -43,8 +43,8 @@
theme = "fishy"; theme = "fishy";
}; };
initExtra = lib.optionalString (config.home.sessionPath != [ ]) '' profileExtra = ''
export PATH="$PATH''${PATH:+:}${lib.concatStringsSep ":" config.home.sessionPath}" source .profile
''; '';
}; };
}; };