From 2bbad75474cf211b4250080f54477e9b5e50cc72 Mon Sep 17 00:00:00 2001 From: 514fpv Date: Wed, 3 Jan 2024 11:10:04 +0800 Subject: [PATCH] perf(gui): switch to open source nvidia drivers Also disable xserver as it is not needed for a wayland-only setup. --- faucet/gui/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/faucet/gui/default.nix b/faucet/gui/default.nix index a1c7b16e..7844d6ed 100644 --- a/faucet/gui/default.nix +++ b/faucet/gui/default.nix @@ -4,10 +4,14 @@ , ... }: with lib; let cfg = config.faucet.gui; in { - imports = [ ./plymouth.nix ]; + imports = [ + ./plymouth.nix + ./greetd.nix + ]; options.faucet.gui = { 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" ]; description = "type of graphics acceleration used"; @@ -31,8 +35,6 @@ in { services.xserver.videoDrivers = optional ((cfg.type == "nvidia") || (cfg.type == "prime")) "nvidia" ++ optional (cfg.type == "amdgpu") "amdgpu"; - # has to be enabled even when using wayland - services.xserver.enable = true; # inhibits default display manager services.xserver.displayManager.startx.enable = mkDefault true; @@ -49,7 +51,7 @@ in { powerManagement.enable = false; powerManagement.finegrained = false; - open = false; + open = true; }; boot.initrd.kernelModules =