summaryrefslogtreecommitdiffstats
path: root/krebs/3modules
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2016-06-05 00:38:00 +0200
committerlassulus <lass@aidsballs.de>2016-06-05 00:38:00 +0200
commitbaa20586b875e5b6bd600cf731f15d2251d05c95 (patch)
tree19ad3210a2b8485ac22d26f75b2e2493d3f61596 /krebs/3modules
parent231eda580b273d630fe10894d4ea46135c1f941d (diff)
parentc1c645b545b960eb639fc6d41dfa35ee187ae164 (diff)
Merge remote-tracking branch 'cd/master'
Diffstat (limited to 'krebs/3modules')
-rw-r--r--krebs/3modules/setuid.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/krebs/3modules/setuid.nix b/krebs/3modules/setuid.nix
index cfb8382e8..65a4abe1c 100644
--- a/krebs/3modules/setuid.nix
+++ b/krebs/3modules/setuid.nix
@@ -20,6 +20,10 @@ let
type = types.filename;
default = config._module.args.name;
};
+ envp = mkOption {
+ type = types.attrsOf types.str;
+ default = {};
+ };
filename = mkOption {
type = mkOptionType {
# TODO unyuck string and merge with toC
@@ -57,7 +61,7 @@ let
};
config.activate = let
src = pkgs.execve config.name {
- inherit (config) filename;
+ inherit (config) envp filename;
};
dst = "${wrapperDir}/${config.name}";
in ''