nixos: condition shadow setuid-wrappers on mutableUsers

Having junk setuid wrappers in PATH is annoying.
This commit is contained in:
Joachim Fasting 2015-04-12 21:42:50 +02:00
parent 2d8cfe76a9
commit 75ab7bf960

View File

@ -100,8 +100,10 @@ in
chgpasswd = { rootOK = true; };
};
security.setuidPrograms = [ "passwd" "chfn" "su" "sg" "newgrp"
"newuidmap" "newgidmap" # new in shadow 4.2.x
security.setuidPrograms = [ "su" "chfn" ]
++ lib.optionals config.users.mutableUsers
[ "passwd" "sg" "newgrp"
"newuidmap" "newgidmap" # new in shadow 4.2.x
];
};