profile update
This commit is contained in:
parent
505e65b7e6
commit
3618caefd6
3
config/profile
Normal file
3
config/profile
Normal 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
|
2
home.nix
2
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
|
||||
|
@ -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
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user