diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2018-10-19 15:40:43 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-19 15:40:43 -0500 |
commit | 5b73b46aec5350da4354844ad6e49bba5b7324d3 (patch) | |
tree | 032c85aa0b46704132d5f52ace8b73ce765a0c01 /nixos | |
parent | 02b5f4ff79b72c1e6bd78ee3c7d7855ee58b9647 (diff) | |
parent | df41d53f9d3f5093e7954dc997aa24f7f6b521d3 (diff) |
Merge pull request #48689 from Tmplt/fix-compton
nixos/compton: fix corrupt colours with Mesa 18 on AMD
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/x11/compton.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/compton.nix b/nixos/modules/services/x11/compton.nix index 8641c05de52e8..cafd8d88ec4d3 100644 --- a/nixos/modules/services/x11/compton.nix +++ b/nixos/modules/services/x11/compton.nix @@ -238,6 +238,12 @@ in { description = "Compton composite manager"; wantedBy = [ "graphical-session.target" ]; partOf = [ "graphical-session.target" ]; + + # Temporarily fixes corrupt colours with Mesa 18 + environment = mkIf (cfg.backend == "glx") { + allow_rgb10_configs = "false"; + }; + serviceConfig = { ExecStart = "${cfg.package}/bin/compton --config ${configFile}"; RestartSec = 3; |