home-manager/modules/services/xscreensaver.nix
Robert Helgesson d7d02c3ce8
Initial import
2017-01-14 13:15:24 +01:00

27 lines
502 B
Nix

{ 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 = [ "xorg.target" ];
};
};
};
}