diff --git a/modules/services/compton.nix b/modules/services/compton.nix index f7a794e4..136d160b 100644 --- a/modules/services/compton.nix +++ b/modules/services/compton.nix @@ -302,6 +302,10 @@ in { ExecStart = "${cfg.package}/bin/compton --config ${configFile}"; Restart = "always"; RestartSec = 3; + } + // optionalAttrs (cfg.backend == "glx") { + # Temporarily fixes corrupt colours with Mesa 18. + Environment = [ "allow_rgb10_configs=false" ]; }; }; };