diff options
author | Tmplt <tmplt@dragons.rocks> | 2018-10-19 00:57:35 +0200 |
---|---|---|
committer | Tmplt <tmplt@dragons.rocks> | 2018-10-19 01:10:11 +0200 |
commit | df41d53f9d3f5093e7954dc997aa24f7f6b521d3 (patch) | |
tree | 72637d9845822dbd87334f29afbbaaa7439c8fb8 /nixos | |
parent | f3de52d25c80776e982037f6e5148f1fdf0d8dfc (diff) | |
download | nixlib-df41d53f9d3f5093e7954dc997aa24f7f6b521d3.tar nixlib-df41d53f9d3f5093e7954dc997aa24f7f6b521d3.tar.gz nixlib-df41d53f9d3f5093e7954dc997aa24f7f6b521d3.tar.bz2 nixlib-df41d53f9d3f5093e7954dc997aa24f7f6b521d3.tar.lz nixlib-df41d53f9d3f5093e7954dc997aa24f7f6b521d3.tar.xz nixlib-df41d53f9d3f5093e7954dc997aa24f7f6b521d3.tar.zst nixlib-df41d53f9d3f5093e7954dc997aa24f7f6b521d3.zip |
nixos/compton: fix corrupt colours with Mesa 18 on AMD
On AMD hardware with Mesa 18, compton renders some colours incorrectly when using the glx backend. This patch sets an environmental variable for compton so colours are rendered correctly. Topical bug: <https://bugs.freedesktop.org/show_bug.cgi?id=104597>
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 8641c05de52e..cafd8d88ec4d 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; |