mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39:46 +01:00
compton: minor reformatting
This commit is contained in:
parent
9a0f388f66
commit
abfc37076a
1 changed files with 17 additions and 18 deletions
|
@ -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" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue