3
0
Fork 0
forked from mirrors/nixpkgs

Switching locate over to new wrapper API

This commit is contained in:
Parnell Springmeyer 2017-01-29 11:27:08 -06:00
parent 6777e6f812
commit 9abe7528e4
No known key found for this signature in database
GPG key ID: DCCF89258EAD874A

View file

@ -103,15 +103,16 @@ in {
config = mkIf cfg.enable {
users.extraGroups = mkIf isMLocate { mlocate = {}; };
security.setuidOwners = mkIf isMLocate
[ { group = "mlocate";
security.wrappers = mkIf isMLocate {
mlocate = {
group = "mlocate";
owner = "root";
permissions = "u+rx,g+x,o+x";
setgid = true;
setuid = false;
program = "locate";
}
];
};
};
nixpkgs.config = { locate.dbfile = cfg.output; };