From 016c1bd8c51e2c146261fdc23d07ff93624e26a2 Mon Sep 17 00:00:00 2001 From: 514fpv Date: Thu, 11 Jan 2024 14:03:36 +0800 Subject: [PATCH] global(gui): add default null value to type --- global/gui/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/global/gui/default.nix b/global/gui/default.nix index d3702d26..5c573d35 100644 --- a/global/gui/default.nix +++ b/global/gui/default.nix @@ -17,7 +17,8 @@ in { enable = mkEnableOption "various setup required for GUI and support software"; session = mkEnableOption "software required for a graphical session" // { default = true; }; type = mkOption { - type = with types; enum [ "intel" "amdgpu" "nvidia" "prime" ]; + type = with types; nullOr enum [ "intel" "amdgpu" "nvidia" "prime" ]; + default = null; description = "type of graphics acceleration used"; }; arc = mkOption {