diff options
author | Parnell Springmeyer <parnell@digitalmentat.com> | 2017-01-29 01:41:39 -0600 |
---|---|---|
committer | Parnell Springmeyer <parnell@digitalmentat.com> | 2017-01-29 01:41:39 -0600 |
commit | af3b9a3d46672232d70e4ab6a45f00e10363bfae (patch) | |
tree | 89d7b4a09cb554ae65caae22c482d5b07cc88339 /nixos/modules/security/wrappers | |
parent | 48564d1ae56b93a27ca6dc5565f389dfde66831a (diff) | |
download | nixlib-af3b9a3d46672232d70e4ab6a45f00e10363bfae.tar nixlib-af3b9a3d46672232d70e4ab6a45f00e10363bfae.tar.gz nixlib-af3b9a3d46672232d70e4ab6a45f00e10363bfae.tar.bz2 nixlib-af3b9a3d46672232d70e4ab6a45f00e10363bfae.tar.lz nixlib-af3b9a3d46672232d70e4ab6a45f00e10363bfae.tar.xz nixlib-af3b9a3d46672232d70e4ab6a45f00e10363bfae.tar.zst nixlib-af3b9a3d46672232d70e4ab6a45f00e10363bfae.zip |
More wibbles?
Diffstat (limited to 'nixos/modules/security/wrappers')
-rw-r--r-- | nixos/modules/security/wrappers/default.nix | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nixos/modules/security/wrappers/default.nix b/nixos/modules/security/wrappers/default.nix index 28aacb891ee3..0170da03689a 100644 --- a/nixos/modules/security/wrappers/default.nix +++ b/nixos/modules/security/wrappers/default.nix @@ -4,11 +4,11 @@ let inherit (config.security) wrapperDir wrappers setuidPrograms; programs = - (map (x: { program = x; owner = "root"; group = "root"; setuid = true; }) - setuidPrograms) - ++ lib.mapAttrsToList - (n: v: (if v ? "program" then v else v // {program=n;})) - wrappers; + (map (x: { program = x; owner = "root"; group = "root"; setuid = true; }) setuidPrograms) + ++ + (lib.mapAttrsToList + (n: v: (if v ? "program" then v else v // {program=n;})) + wrappers); mkWrapper = { program, source ? null, ...}: '' if ! source=${if source != null then source else "$(readlink -f $(PATH=$WRAPPER_PATH type -tP ${program}))"}; then |