diff --git a/modules/services/compton.nix b/modules/services/compton.nix index f7a794e4c..136d160bc 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" ]; }; }; };