mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 19:49:45 +01:00
30 lines
604 B
Nix
30 lines
604 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
{
|
||
|
options = {
|
||
|
services.compton = {
|
||
|
enable = mkEnableOption "Compton X11 compositor";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
config = mkIf config.services.compton.enable {
|
||
|
systemd.user.services.compton = {
|
||
|
Unit = {
|
||
|
Description = "Compton X11 compositor";
|
||
|
After = [ "graphical-session-pre.target" ];
|
||
|
PartOf = [ "graphical-session.target" ];
|
||
|
};
|
||
|
|
||
|
Install = {
|
||
|
WantedBy = [ "graphical-session.target" ];
|
||
|
};
|
||
|
|
||
|
Service = {
|
||
|
ExecStart = "${pkgs.compton}/bin/compton";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|