18 lines
290 B
Nix
18 lines
290 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
inherit (lib) mkIf mkMerge mkThenElse;
|
|
cfg = config.r6d.config-generator;
|
|
computers = config.r6d.computers;
|
|
profiles = config.r6d.profiles;
|
|
in
|
|
|
|
mkIf cfg.locate {
|
|
|
|
# Services
|
|
services.locate = {
|
|
enable = true;
|
|
interval = "hourly";
|
|
};
|
|
}
|