From 268c5bdf3ada00c672fa83a7ea73c13cc38db93e Mon Sep 17 00:00:00 2001 From: chn Date: Thu, 1 Feb 2024 00:05:04 +0800 Subject: [PATCH] pc: enable envfs --- devices/pc/default.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/devices/pc/default.nix b/devices/pc/default.nix index 560c23da..a3e17b37 100644 --- a/devices/pc/default.nix +++ b/devices/pc/default.nix @@ -140,12 +140,17 @@ inputs: bugs = [ "xmunet" "backlight" "amdpstate" ]; }; # use plasma-x11 as default, instead of plasma-wayland - services.xserver.displayManager = + services = { - defaultSession = inputs.lib.mkForce "plasma"; - setupCommands = "${inputs.pkgs.xcalib}/bin/xcalib -d :0 ${./color/TPLCD_161B_Default.icm}"; + xserver.displayManager = + { + defaultSession = inputs.lib.mkForce "plasma"; + setupCommands = "${inputs.pkgs.xcalib}/bin/xcalib -d :0 ${./color/TPLCD_161B_Default.icm}"; + }; + envfs.enable = true; }; virtualisation.virtualbox.host = { enable = true; enableExtensionPack = true; }; hardware.nvidia.forceFullCompositionPipeline = true; + environment.variables.ENVFS_RESOLVE_ALWAYS = "1"; }; }