superfreq: init
This commit is contained in:
parent
1cbe5d7e2a
commit
78afacde79
6 changed files with 48 additions and 2 deletions
28
modules/programs/superfreq.nix
Normal file
28
modules/programs/superfreq.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue