nix: options refactor

This commit is contained in:
Primrose 2024-05-26 12:33:17 +02:00
parent fa5bbfb199
commit f329c3af7c
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
6 changed files with 143 additions and 139 deletions

View file

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