mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-03-14 15:51:32 +01:00
19 lines
436 B
Nix
19 lines
436 B
Nix
{
|
|
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;
|
|
};
|
|
}
|