From e05120791beef7f3579f7d6dd28e1c4594cd2e2b Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 9 Feb 2026 01:12:25 -0800 Subject: [PATCH] Add IMALISON_SESSION_TYPE=x11 condition to picom and autorandr Both are X11-only services that shouldn't start in Wayland sessions. Co-Authored-By: Claude Opus 4.6 --- nixos/xmonad.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/xmonad.nix b/nixos/xmonad.nix index fa4dadee..b7aaa350 100644 --- a/nixos/xmonad.nix +++ b/nixos/xmonad.nix @@ -37,6 +37,7 @@ makeEnable config "myModules.xmonad" true { imports = [ ./dunst.nix ]; services.autorandr.enable = true; + systemd.user.services.autorandr.Unit.ConditionEnvironment = "IMALISON_SESSION_TYPE=x11"; services.random-background = { enable = true; @@ -63,6 +64,7 @@ makeEnable config "myModules.xmonad" true { systemd.user.services.picom = { Unit = { Description = "Picom X11 compositor"; + ConditionEnvironment = "IMALISON_SESSION_TYPE=x11"; After = [ "graphical-session.target" ]; PartOf = [ "graphical-session.target" ]; };