home-manager/modules/services/xscreensaver.nix

28 lines
515 B
Nix
Raw Normal View History

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