{ config, lib, pkgs, ... }: let inherit (lib) mkIf mkMerge mkThenElse; annuaire = config.r6d.machines; currentMachine = annuaire."${config.networking.hostName}"; flags = currentMachine.configurationFlags; in mkIf flags.locate { # Services services.locate = { enable = true; interval = "hourly"; }; }