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:
@@ -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" ];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user