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