treewide: cleanup config with enable options
This commit is contained in:
parent
d469c5fa79
commit
0a387960a2
28 changed files with 420 additions and 358 deletions
|
@ -4,8 +4,13 @@
|
|||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.my.mpd;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf (config.my.desktop != "gnome") {
|
||||
options.my.mpd.enable = lib.mkEnableOption { };
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.mpd = {
|
||||
enable = true;
|
||||
musicDirectory = config.home.homeDirectory + "/Música";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue