Remove deprecated option home.sessionVariableSetter
This commit is contained in:
parent
1bc59f7290
commit
9ea353569a
8 changed files with 17 additions and 97 deletions
|
|
@ -183,9 +183,7 @@ in
|
|||
home.file.".profile".text = ''
|
||||
# -*- mode: sh -*-
|
||||
|
||||
${optionalString (config.home.sessionVariableSetter != "pam") ''
|
||||
. "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
|
||||
''}
|
||||
. "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
|
||||
|
||||
${sessionVarsStr}
|
||||
|
||||
|
|
|
|||
|
|
@ -54,13 +54,6 @@ in
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
assertions = [{
|
||||
assertion = config.home.sessionVariableSetter != "pam";
|
||||
message = ''
|
||||
The info module does not work with PAM as a session variable setter.
|
||||
'';
|
||||
}];
|
||||
|
||||
home.sessionVariables.INFOPATH =
|
||||
"${cfg.homeInfoDirLocation}\${INFOPATH:+:}\${INFOPATH}";
|
||||
|
||||
|
|
|
|||
|
|
@ -332,9 +332,7 @@ in
|
|||
${cfg.initExtra}
|
||||
|
||||
# Environment variables
|
||||
${optionalString (config.home.sessionVariableSetter != "pam") ''
|
||||
. "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
|
||||
''}
|
||||
. "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
|
||||
${envVarsStr}
|
||||
|
||||
# Aliases
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue