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 <noreply@anthropic.com>
This commit is contained in:
2026-02-09 01:12:25 -08:00
committed by Kat Huang
parent feaca43946
commit e05120791b

View File

@@ -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" ];
};