mirror of
https://github.com/nix-community/home-manager
synced 2024-11-17 00:29:45 +01:00
31 lines
665 B
Nix
31 lines
665 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
meta.maintainers = [ maintainers.rycee ];
|
|
|
|
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" ];
|
|
};
|
|
|
|
Service = {
|
|
ExecStart = "${pkgs.xscreensaver}/bin/xscreensaver -no-splash";
|
|
};
|
|
|
|
Install = {
|
|
WantedBy = [ "graphical-session.target" ];
|
|
};
|
|
};
|
|
};
|
|
}
|