superfreq: init

This commit is contained in:
DashieTM 2025-05-16 21:52:32 +02:00
parent 1cbe5d7e2a
commit 78afacde79
6 changed files with 48 additions and 2 deletions

View file

@ -0,0 +1,28 @@
{
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;
};
};
}