From 343e89015a55b627400286a06937175facb1494d Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 8 Feb 2022 19:56:06 -0800 Subject: desktop: new option to control desktop setup We don't want to install a desktop on all hosts. We add a new option that we can set to true or false if we want a desktop to be installed. --- modules/desktop/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'modules/desktop/default.nix') diff --git a/modules/desktop/default.nix b/modules/desktop/default.nix index f150066..3ee9fb5 100644 --- a/modules/desktop/default.nix +++ b/modules/desktop/default.nix @@ -1,5 +1,15 @@ {lib, config, pkgs, ...}: +with lib; + { + options.sys.graphics = { + desktopProtocols = mkOption { + type = with types; listOf (enum ["xorg" "wayland"]); + default = []; + description = "Desktop protocols you want to use for your desktop environment. If unset, no desktop is installed (headless host)."; + }; + }; + imports = [ ./fonts.nix ./sound.nix -- cgit v1.2.3