some module housecleaning
This commit is contained in:
@@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user