summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif/systemd.nix
diff options
context:
space:
mode:
Diffstat (limited to 'accounts/gkleen@sif/systemd.nix')
-rw-r--r--accounts/gkleen@sif/systemd.nix31
1 files changed, 21 insertions, 10 deletions
diff --git a/accounts/gkleen@sif/systemd.nix b/accounts/gkleen@sif/systemd.nix
index 90cccc58..fd4b4cf4 100644
--- a/accounts/gkleen@sif/systemd.nix
+++ b/accounts/gkleen@sif/systemd.nix
@@ -171,6 +171,8 @@ in {
171 }; 171 };
172 Unit = { 172 Unit = {
173 StopWhenUnneeded = true; 173 StopWhenUnneeded = true;
174 StartLimitInterval = "2s";
175 StartLimitBurst = 25;
174 }; 176 };
175 }; 177 };
176 "autossh-socks@proxy.mathw0h:8123" = { 178 "autossh-socks@proxy.mathw0h:8123" = {
@@ -205,11 +207,6 @@ in {
205 StartLimitBurst = 7; 207 StartLimitBurst = 7;
206 }; 208 };
207 }; 209 };
208 swayidle = {
209 Service = {
210 RuntimeDirectory = "swayidle";
211 };
212 };
213 psi-notify = { 210 psi-notify = {
214 Install = { 211 Install = {
215 WantedBy = ["graphical-session.target"]; 212 WantedBy = ["graphical-session.target"];
@@ -351,8 +348,6 @@ in {
351 xembed-sni-proxy = { 348 xembed-sni-proxy = {
352 Unit = { 349 Unit = {
353 PartOf = lib.mkForce ["tray.target"]; 350 PartOf = lib.mkForce ["tray.target"];
354 BindsTo = ["xwayland-satellite.service"];
355 After = ["xwayland-satellite.service"];
356 }; 351 };
357 }; 352 };
358 poweralertd = { 353 poweralertd = {
@@ -385,16 +380,32 @@ in {
385 }; 380 };
386 Service = { 381 Service = {
387 ExecStart = "${config.systemd.package}/lib/systemd/systemd-socket-proxyd --exit-idle-time=60s 127.0.0.1:${toString (port + 1)}"; 382 ExecStart = "${config.systemd.package}/lib/systemd/systemd-socket-proxyd --exit-idle-time=60s 127.0.0.1:${toString (port + 1)}";
383 Restart = "always";
384 RestartSec = "23s";
388 }; 385 };
389 }) [{ host = "proxy.ssh.math.lmu.de"; port = 8118; } { host = "proxy.vidhar"; port = 8120; } { host = "proxy.mathw0h"; port = 8122; } { host = "proxy.mathw0e"; port = 8124; }]); 386 }) [{ host = "proxy.ssh.math.lmu.de"; port = 8118; } { host = "proxy.vidhar"; port = 8120; } { host = "proxy.mathw0h"; port = 8122; } { host = "proxy.mathw0e"; port = 8124; }]);
390 sockets = listToAttrs (map (port: nameValuePair "proxy-to-autossh-socks@${toString port}" { 387 sockets = listToAttrs (map (port: nameValuePair "proxy-to-autossh-socks@${toString port}" {
391 Socket = { 388 Socket = {
392 ListenStream = "%I"; 389 ListenStream = "%I";
390 TriggerLimitIntervalSec = 0;
391 PollLimitIntervalSec = "180s";
392 PollLimitBurst = 6;
393 }; 393 };
394 Install = { 394 Install = {
395 WantedBy = ["default.target"]; 395 WantedBy = ["default.target"];
396 }; 396 };
397 }) [8118 8120 8122 8124]) // { 397 }) [8118 8122 8124]) // {
398 "proxy-to-autossh-socks@8120" = {
399 Socket = {
400 ListenStream = "%I";
401 TriggerLimitIntervalSec = 0;
402 PollLimitIntervalSec = "2s";
403 PollLimitBurst = 20;
404 };
405 Install = {
406 WantedBy = ["default.target"];
407 };
408 };
398 "yt-dlp" = { 409 "yt-dlp" = {
399 Socket = { 410 Socket = {
400 SocketMode = "0600"; 411 SocketMode = "0600";
@@ -439,8 +450,8 @@ in {
439 tray = { 450 tray = {
440 Unit = { 451 Unit = {
441 PartOf = [ "graphical-session.target" ]; 452 PartOf = [ "graphical-session.target" ];
442 Requires = [ "waybar.service" ]; 453 # Requires = [ "waybar.service" ];
443 After = [ "graphical-session.target" "waybar.service" ]; 454 After = [ "graphical-session.target" ]; # "waybar.service" ];
444 Wants = ["blueman-applet.service" "udiskie.service" "network-manager-applet.service"]; 455 Wants = ["blueman-applet.service" "udiskie.service" "network-manager-applet.service"];
445 }; 456 };
446 }; 457 };