nixcfg/modules/darwin/services/nix-daemon/default.nix
Harald Hoyer 04f08d679e rename plusultra to metacfg
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2024-03-20 08:58:05 +01:00

18 lines
335 B
Nix

{ lib, config, ... }:
let
inherit (lib) types mkIf;
inherit (lib.metacfg) mkOpt enabled;
cfg = config.metacfg.services.nix-daemon;
in
{
options.metacfg.services.nix-daemon = {
enable = mkOpt types.bool true "Whether to enable the Nix daemon.";
};
config = mkIf cfg.enable {
services.nix-daemon = enabled;
};
}