21 lines
346 B
Nix
21 lines
346 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib) mkIf mkEnableOption;
|
|
cfg = config.modules.sysd.locate;
|
|
in {
|
|
options = {
|
|
modules.sysd.locate.enable = mkEnableOption "Enables plocate";
|
|
};
|
|
config = mkIf cfg.enable {
|
|
services.locate = {
|
|
enable = true;
|
|
package = pkgs.plocate;
|
|
localuser = null;
|
|
};
|
|
};
|
|
}
|