From dd538c29690898c388dd4ec883a61cf2415b452c Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Wed, 8 Apr 2020 13:18:28 +0200 Subject: [PATCH] home-environment: add option `sessionVariablesExtra` This is an internal option for adding additional code to `hm-session-vars.sh`. --- modules/home-environment.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/modules/home-environment.nix b/modules/home-environment.nix index 0b2fb8f4..8b72f5a5 100644 --- a/modules/home-environment.nix +++ b/modules/home-environment.nix @@ -198,6 +198,16 @@ in ''; }; + home.sessionVariablesExtra = mkOption { + type = types.lines; + default = ""; + internal = true; + description = '' + Extra configuration to add to the + hm-session-vars.sh 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; } ) ];