From abfc37076a278f52abbc26387e1d08d82ba6e062 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Thu, 15 Nov 2018 00:16:56 +0100 Subject: [PATCH] compton: minor reformatting --- modules/services/compton.nix | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/modules/services/compton.nix b/modules/services/compton.nix index 136d160bc..88b15b43b 100644 --- a/modules/services/compton.nix +++ b/modules/services/compton.nix @@ -284,29 +284,28 @@ in { }; config = mkIf cfg.enable { - home.packages = [ cfg.package ]; systemd.user.services.compton = { - Unit = { - Description = "Compton X11 compositor"; - After = [ "graphical-session-pre.target" ]; - PartOf = [ "graphical-session.target" ]; - }; + Unit = { + Description = "Compton X11 compositor"; + After = [ "graphical-session-pre.target" ]; + PartOf = [ "graphical-session.target" ]; + }; - Install = { - WantedBy = [ "graphical-session.target" ]; - }; + Install = { + WantedBy = [ "graphical-session.target" ]; + }; - Service = { - 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" ]; - }; + Service = { + 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" ]; + }; }; }; }