mirror of
https://github.com/nix-community/home-manager
synced 2024-11-10 07:04:17 +00:00
compton: add module
This commit is contained in:
parent
f47084968d
commit
aa69598b57
3 changed files with 37 additions and 0 deletions
|
@ -35,6 +35,7 @@ let
|
|||
./programs/vim.nix
|
||||
./programs/zsh.nix
|
||||
./services/blueman-applet.nix
|
||||
./services/compton.nix
|
||||
./services/dunst.nix
|
||||
./services/gnome-keyring.nix
|
||||
./services/gpg-agent.nix
|
||||
|
|
|
@ -178,6 +178,13 @@ in
|
|||
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