From 10af371a2348148c91d034b08eeec07694027238 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 6 Jan 2025 19:29:16 +0100 Subject: ... --- accounts/gkleen@sif/systemd.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'accounts/gkleen@sif/systemd.nix') diff --git a/accounts/gkleen@sif/systemd.nix b/accounts/gkleen@sif/systemd.nix index 33bf7ef2..c8400c28 100644 --- a/accounts/gkleen@sif/systemd.nix +++ b/accounts/gkleen@sif/systemd.nix @@ -322,6 +322,21 @@ in { ExecStopPost = "${pkgs.coreutils}/bin/rm -rfv \"$CACHE_DIRECTORY\""; }; }; + wpaperd = { + Install = { + WantedBy = ["graphical-session.target"]; + }; + Unit = { + BindsTo = ["graphical-session-pre.target"]; + After = ["graphical-session-pre.target"]; + }; + Service = { + ExecStart = lib.getExe cfg.programs.wpaperd.package; + Type = "simple"; + Restart = "always"; + RestartSec = "2s"; + }; + }; } // listToAttrs (map ({host, port}: nameValuePair "proxy-to-autossh-socks@${toString port}" { Unit = { Requires = ["autossh-socks@${host}:${toString (port + 1)}.service" "proxy-to-autossh-socks@${toString port}.socket"]; -- cgit v1.2.3