home-manager/modules/services/xscreensaver.nix

32 lines
665 B
Nix
Raw Normal View History

2017-01-07 18:16:26 +00:00
{ config, lib, pkgs, ... }:
with lib;
{
meta.maintainers = [ maintainers.rycee ];
2017-01-07 18:16:26 +00:00
options = {
services.xscreensaver = {
enable = mkEnableOption "XScreenSaver";
};
};
config = mkIf config.services.xscreensaver.enable {
systemd.user.services.xscreensaver = {
Unit = {
Description = "XScreenSaver";
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
2017-01-07 18:16:26 +00:00
};
Service = {
ExecStart = "${pkgs.xscreensaver}/bin/xscreensaver -no-splash";
};
Install = {
WantedBy = [ "graphical-session.target" ];
2017-01-07 18:16:26 +00:00
};
};
};
}