some module housecleaning

This commit is contained in:
cnst
2024-09-26 18:24:07 +02:00
parent 9280796e59
commit 391a1428b0
14 changed files with 37 additions and 404 deletions

View File

@@ -31,6 +31,18 @@ in {
default = {};
description = "Network interface configurations.";
};
nm-applet = {
enable = mkEnableOption {
type = types.bool;
default = false;
description = "Enables the nm-applet service.";
};
indicator.enable = mkEnableOption {
type = types.bool;
default = false;
description = "Enables the nm-applet indicator";
};
};
};
};
};
@@ -46,5 +58,9 @@ in {
inherit (cfg) interfaces;
};
};
programs.nm-applet = {
enable = cfg.nm-applet.enable;
indicator.enable = cfg.nm-applet.indicator;
};
};
}

View File

@@ -10,6 +10,9 @@ in {
modules.sysd.network.blueman.enable = mkEnableOption "Enables blueman";
};
config = mkIf cfg.enable {
services.blueman.enable = true;
services = {
blueman.enable = true;
blueman-applet.enable = true;
};
};
}