1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-24 02:39:48 +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 {
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;
}
)
];