(modules/flake) improve library loading and implement system class module mappings

This commit is contained in:
Jo 2025-01-29 12:17:34 +01:00
parent 7d16e19c8b
commit f139b88c0b
9 changed files with 144 additions and 73 deletions

View file

@ -0,0 +1,19 @@
{
lib,
config,
namespace,
...
}:
let
inherit (lib) mkEnableOption mkIf;
cfg = config.${namespace}.desktop.gnome;
in
{
options.${namespace}.desktop.gnome = { enable = mkEnableOption "Enable the gnome desktop environment ${namespace}"; };
config = mkIf cfg.enable {
services.xserver.enable = true;
services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true;
};
}