forked from mirrors/nixpkgs
Switching locate over to new wrapper API
This commit is contained in:
parent
6777e6f812
commit
9abe7528e4
|
@ -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; };
|
||||
|
||||
|
|
Loading…
Reference in a new issue