1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 05:29:46 +01:00

home-environment: add option sessionVariablesExtra

This is an internal option for adding additional code to
`hm-session-vars.sh`.
This commit is contained in:
Robert Helgesson 2020-04-08 13:18:28 +02:00
parent f56c4187a4
commit dd538c2969
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -198,6 +198,16 @@ in
''; '';
}; };
home.sessionVariablesExtra = mkOption {
type = types.lines;
default = "";
internal = true;
description = ''
Extra configuration to add to the
<filename>hm-session-vars.sh</filename> file.
'';
};
home.packages = mkOption { home.packages = mkOption {
type = types.listOf types.package; type = types.listOf types.package;
default = []; default = [];
@ -352,7 +362,7 @@ in
export __HM_SESS_VARS_SOURCED=1 export __HM_SESS_VARS_SOURCED=1
${config.lib.shell.exportAll cfg.sessionVariables} ${config.lib.shell.exportAll cfg.sessionVariables}
''; '' + cfg.sessionVariablesExtra;
} }
) )
]; ];