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
1 changed files with 11 additions and 1 deletions

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 {
type = types.listOf types.package;
default = [];
@ -352,7 +362,7 @@ in
export __HM_SESS_VARS_SOURCED=1
${config.lib.shell.exportAll cfg.sessionVariables}
'';
'' + cfg.sessionVariablesExtra;
}
)
];