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 {
|
config = mkIf cfg.enable {
|
||||||
users.extraGroups = mkIf isMLocate { mlocate = {}; };
|
users.extraGroups = mkIf isMLocate { mlocate = {}; };
|
||||||
|
|
||||||
security.setuidOwners = mkIf isMLocate
|
security.wrappers = mkIf isMLocate {
|
||||||
[ { group = "mlocate";
|
mlocate = {
|
||||||
|
group = "mlocate";
|
||||||
owner = "root";
|
owner = "root";
|
||||||
permissions = "u+rx,g+x,o+x";
|
permissions = "u+rx,g+x,o+x";
|
||||||
setgid = true;
|
setgid = true;
|
||||||
setuid = false;
|
setuid = false;
|
||||||
program = "locate";
|
program = "locate";
|
||||||
}
|
};
|
||||||
];
|
};
|
||||||
|
|
||||||
nixpkgs.config = { locate.dbfile = cfg.output; };
|
nixpkgs.config = { locate.dbfile = cfg.output; };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user