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 {
|
config = mkIf cfg.enable {
|
||||||
|
|
||||||
home.packages = [ cfg.package ];
|
home.packages = [ cfg.package ];
|
||||||
|
|
||||||
systemd.user.services.compton = {
|
systemd.user.services.compton = {
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "Compton X11 compositor";
|
Description = "Compton X11 compositor";
|
||||||
After = [ "graphical-session-pre.target" ];
|
After = [ "graphical-session-pre.target" ];
|
||||||
PartOf = [ "graphical-session.target" ];
|
PartOf = [ "graphical-session.target" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
Install = {
|
Install = {
|
||||||
WantedBy = [ "graphical-session.target" ];
|
WantedBy = [ "graphical-session.target" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
Service = {
|
Service = {
|
||||||
ExecStart = "${cfg.package}/bin/compton --config ${configFile}";
|
ExecStart = "${cfg.package}/bin/compton --config ${configFile}";
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
RestartSec = 3;
|
RestartSec = 3;
|
||||||
}
|
}
|
||||||
// optionalAttrs (cfg.backend == "glx") {
|
// optionalAttrs (cfg.backend == "glx") {
|
||||||
# Temporarily fixes corrupt colours with Mesa 18.
|
# Temporarily fixes corrupt colours with Mesa 18.
|
||||||
Environment = [ "allow_rgb10_configs=false" ];
|
Environment = [ "allow_rgb10_configs=false" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue