DashNix/modules/programs/superfreq.nix
2025-05-16 21:52:32 +02:00

28 lines
591 B
Nix

{
lib,
options,
config,
...
}: {
options.mods.superfreq = {
enable = lib.mkOption {
default = false;
example = true;
type = lib.types.bool;
description = ''Enables superfreq'';
};
settings = lib.mkOption {
default = {};
example = {};
type = with lib.types; attrsOf anything;
description = ''Superfreq config'';
};
};
config = lib.optionalAttrs (options ? services.superfreq) {
services.superfreq = {
enable = config.mods.superfreq.enable;
settings = config.mods.superfreq.settings;
};
};
}