diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2024-08-15 16:09:28 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2024-08-15 16:09:28 +0200 |
commit | e14ab1ddf1c86ab7522288724acc51d5a22062e3 (patch) | |
tree | 43b0a8e740bd64cf58030d96c09c05357d5cc842 /accounts/gkleen@sif/systemd.nix | |
parent | ac8c678806288df395a87deb15491a2c8c1423a0 (diff) | |
download | nixos-e14ab1ddf1c86ab7522288724acc51d5a22062e3.tar nixos-e14ab1ddf1c86ab7522288724acc51d5a22062e3.tar.gz nixos-e14ab1ddf1c86ab7522288724acc51d5a22062e3.tar.bz2 nixos-e14ab1ddf1c86ab7522288724acc51d5a22062e3.tar.xz nixos-e14ab1ddf1c86ab7522288724acc51d5a22062e3.zip |
...
Diffstat (limited to 'accounts/gkleen@sif/systemd.nix')
-rw-r--r-- | accounts/gkleen@sif/systemd.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/accounts/gkleen@sif/systemd.nix b/accounts/gkleen@sif/systemd.nix index 92404b61..be016b09 100644 --- a/accounts/gkleen@sif/systemd.nix +++ b/accounts/gkleen@sif/systemd.nix | |||
@@ -188,6 +188,22 @@ in { | |||
188 | RuntimeDirectory = "swayidle"; | 188 | RuntimeDirectory = "swayidle"; |
189 | }; | 189 | }; |
190 | }; | 190 | }; |
191 | psi-notify = { | ||
192 | Install = { | ||
193 | WantedBy = ["graphical-session.target"]; | ||
194 | }; | ||
195 | Unit = { | ||
196 | Requires = ["graphical-session-pre.target"]; | ||
197 | After = ["graphical-session-pre.target"]; | ||
198 | }; | ||
199 | Service = { | ||
200 | ExecStart = lib.getExe pkgs.psi-notify; | ||
201 | ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID"; | ||
202 | Type = "notify"; | ||
203 | Restart = "always"; | ||
204 | WatchdogSec = "2s"; | ||
205 | }; | ||
206 | }; | ||
191 | } // listToAttrs (map ({host, port}: nameValuePair "proxy-to-autossh-socks@${toString port}" { | 207 | } // listToAttrs (map ({host, port}: nameValuePair "proxy-to-autossh-socks@${toString port}" { |
192 | Unit = { | 208 | Unit = { |
193 | Requires = ["autossh-socks@${host}:${toString (port + 1)}.service" "proxy-to-autossh-socks@${toString port}.socket"]; | 209 | Requires = ["autossh-socks@${host}:${toString (port + 1)}.service" "proxy-to-autossh-socks@${toString port}.socket"]; |