Use mkOption for enabled-by-default module options

This commit is contained in:
Joshua Yuen 2026-09-12 21:44:50 -04:00
parent 116e4eff7d
commit 60fe16d168
Signed by: josh
GPG Key ID: 530DA0331EFE99F5
2 changed files with 5 additions and 3 deletions

View File

@ -5,7 +5,8 @@
with lib;
{
options.modules.pipewire = {
enable = mkEnableOption {
enable = mkOption {
type = types.bool;
default = true;
description = "Enable PipeWire";
};

View File

@ -5,9 +5,10 @@
with lib;
{
options.modules.zsh = {
enable = mkEnableOption {
description = "Install Zsh";
enable = mkOption {
type = types.bool;
default = true;
description = "Install Zsh";
};
};
}