Resolving that silly bad argument error.

This commit is contained in:
Parnell Springmeyer 2016-09-01 19:26:54 -05:00
parent c686da8655
commit d60581d4d6
2 changed files with 2 additions and 4 deletions

View file

@ -119,7 +119,7 @@ in
}
] ++
(lib.optionals config.users.mutableUsers
map (x: x // { user = "root";
map (x: x // { owner = "root";
group = "root";
setuid = true;
})

View file

@ -53,8 +53,6 @@ let
{ program
, source ? null
, owner ? "nobody"
# Legacy code I can't find :(
, user ? null
, group ? "nogroup"
, setuid ? false
, setgid ? false
@ -64,7 +62,7 @@ let
# Prevent races
chmod 0000 ${permissionsWrapperDir}/${program}
chown ${if user != null then user else owner}.${group} ${permissionsWrapperDir}/${program}
chown ${owner}.${group} ${permissionsWrapperDir}/${program}
chmod "u${if setuid then "+" else "-"}s,g${if setgid then "+" else "-"}s,${permissions}" ${permissionsWrapperDir}/${program}
'';