compton: add module
This commit is contained in:
parent
f47084968d
commit
98aaccb512
|
@ -35,6 +35,7 @@ let
|
||||||
./programs/vim.nix
|
./programs/vim.nix
|
||||||
./programs/zsh.nix
|
./programs/zsh.nix
|
||||||
./services/blueman-applet.nix
|
./services/blueman-applet.nix
|
||||||
|
./services/compton.nix
|
||||||
./services/dunst.nix
|
./services/dunst.nix
|
||||||
./services/gnome-keyring.nix
|
./services/gnome-keyring.nix
|
||||||
./services/gpg-agent.nix
|
./services/gpg-agent.nix
|
||||||
|
|
|
@ -178,6 +178,13 @@ in
|
||||||
A new service is available: 'services.blueman-applet'.
|
A new service is available: 'services.blueman-applet'.
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
time = "2017-09-13T11:30:22+00:00";
|
||||||
|
message = ''
|
||||||
|
A new service is available: 'services.compton'.
|
||||||
|
'';
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
29
modules/services/compton.nix
Normal file
29
modules/services/compton.nix
Normal file
|
@ -0,0 +1,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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue