nix: refactored with mkEnableOption

This commit is contained in:
Primrose 2024-07-13 10:32:36 +02:00
parent f0dc70b5d2
commit 32d065ec99
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
3 changed files with 5 additions and 5 deletions

View file

@ -5,7 +5,7 @@
...
}:
{
options.programs.cmus.enable = lib.mkOption { default = false; };
options.programs.cmus.enable = lib.mkEnableOption "cmus";
config.home = lib.mkIf config.programs.cmus.enable {
packages = [