diff options
author | tv <tv@krebsco.de> | 2016-06-05 00:31:36 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-06-05 00:31:36 +0200 |
commit | c1c645b545b960eb639fc6d41dfa35ee187ae164 (patch) | |
tree | a082c2f4ee158a6e2c6b78c0a4d44fa3773d1822 /krebs/3modules | |
parent | 0f7e6ee7f959c8be82d57e43a597ae374250186b (diff) |
krebs.setuid: add option "envp"
Diffstat (limited to 'krebs/3modules')
-rw-r--r-- | krebs/3modules/setuid.nix | 6 |
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 '' |