blob: e1c349971db7af1cd936bb4518e896daa14148d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
{ 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";
};
};
};
}
|