diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2025-01-06 19:29:16 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2025-01-06 19:29:16 +0100 |
commit | 10af371a2348148c91d034b08eeec07694027238 (patch) | |
tree | 904101559daf6437003ab0eda530512aba9a3f3e /accounts/gkleen@sif/systemd.nix | |
parent | 0b9340b466fa9e19fe2651e653d009064fcdacca (diff) | |
download | nixos-10af371a2348148c91d034b08eeec07694027238.tar nixos-10af371a2348148c91d034b08eeec07694027238.tar.gz nixos-10af371a2348148c91d034b08eeec07694027238.tar.bz2 nixos-10af371a2348148c91d034b08eeec07694027238.tar.xz nixos-10af371a2348148c91d034b08eeec07694027238.zip |
...
Diffstat (limited to 'accounts/gkleen@sif/systemd.nix')
-rw-r--r-- | accounts/gkleen@sif/systemd.nix | 15 |
1 files changed, 15 insertions, 0 deletions
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 { | |||
322 | ExecStopPost = "${pkgs.coreutils}/bin/rm -rfv \"$CACHE_DIRECTORY\""; | 322 | ExecStopPost = "${pkgs.coreutils}/bin/rm -rfv \"$CACHE_DIRECTORY\""; |
323 | }; | 323 | }; |
324 | }; | 324 | }; |
325 | wpaperd = { | ||
326 | Install = { | ||
327 | WantedBy = ["graphical-session.target"]; | ||
328 | }; | ||
329 | Unit = { | ||
330 | BindsTo = ["graphical-session-pre.target"]; | ||
331 | After = ["graphical-session-pre.target"]; | ||
332 | }; | ||
333 | Service = { | ||
334 | ExecStart = lib.getExe cfg.programs.wpaperd.package; | ||
335 | Type = "simple"; | ||
336 | Restart = "always"; | ||
337 | RestartSec = "2s"; | ||
338 | }; | ||
339 | }; | ||
325 | } // listToAttrs (map ({host, port}: nameValuePair "proxy-to-autossh-socks@${toString port}" { | 340 | } // listToAttrs (map ({host, port}: nameValuePair "proxy-to-autossh-socks@${toString port}" { |
326 | Unit = { | 341 | Unit = { |
327 | Requires = ["autossh-socks@${host}:${toString (port + 1)}.service" "proxy-to-autossh-socks@${toString port}.socket"]; | 342 | Requires = ["autossh-socks@${host}:${toString (port + 1)}.service" "proxy-to-autossh-socks@${toString port}.socket"]; |