mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 21:23:38 +00:00
28 lines
502 B
Nix
28 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" ];
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|