diff options
Diffstat (limited to 'accounts/gkleen@sif/systemd.nix')
-rw-r--r-- | accounts/gkleen@sif/systemd.nix | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/accounts/gkleen@sif/systemd.nix b/accounts/gkleen@sif/systemd.nix index 2237b708..18c2315f 100644 --- a/accounts/gkleen@sif/systemd.nix +++ b/accounts/gkleen@sif/systemd.nix | |||
@@ -242,7 +242,7 @@ in { | |||
242 | "-${lib.getExe pkgs.playerctl} -a pause" | 242 | "-${lib.getExe pkgs.playerctl} -a pause" |
243 | "-${lib.getExe (pkgs.writeShellApplication { | 243 | "-${lib.getExe (pkgs.writeShellApplication { |
244 | name = "generate-css"; | 244 | name = "generate-css"; |
245 | runtimeInputs = with pkgs; [cfg.programs.wpaperd.package jq coreutils imagemagick findutils]; | 245 | runtimeInputs = with pkgs; [cfg.services.wpaperd.package jq coreutils imagemagick findutils]; |
246 | text = '' | 246 | text = '' |
247 | declare -A monitors | 247 | declare -A monitors |
248 | monitors=() | 248 | monitors=() |
@@ -333,21 +333,21 @@ in { | |||
333 | ExecStopPost = "${pkgs.coreutils}/bin/rm -rfv \"$CACHE_DIRECTORY\""; | 333 | ExecStopPost = "${pkgs.coreutils}/bin/rm -rfv \"$CACHE_DIRECTORY\""; |
334 | }; | 334 | }; |
335 | }; | 335 | }; |
336 | wpaperd = { | 336 | # wpaperd = { |
337 | Install = { | 337 | # Install = { |
338 | WantedBy = ["graphical-session.target"]; | 338 | # WantedBy = ["graphical-session.target"]; |
339 | }; | 339 | # }; |
340 | Unit = { | 340 | # Unit = { |
341 | After = [ "graphical-session.target" ]; | 341 | # After = [ "graphical-session.target" ]; |
342 | PartOf = [ "graphical-session.target" ]; | 342 | # PartOf = [ "graphical-session.target" ]; |
343 | }; | 343 | # }; |
344 | Service = { | 344 | # Service = { |
345 | ExecStart = lib.getExe cfg.programs.wpaperd.package; | 345 | # ExecStart = lib.getExe cfg.services.wpaperd.package; |
346 | Type = "simple"; | 346 | # Type = "simple"; |
347 | Restart = "always"; | 347 | # Restart = "always"; |
348 | RestartSec = "2s"; | 348 | # RestartSec = "2s"; |
349 | }; | 349 | # }; |
350 | }; | 350 | # }; |
351 | xembed-sni-proxy = { | 351 | xembed-sni-proxy = { |
352 | Unit = { | 352 | Unit = { |
353 | PartOf = lib.mkForce ["tray.target"]; | 353 | PartOf = lib.mkForce ["tray.target"]; |
@@ -385,6 +385,8 @@ in { | |||
385 | }; | 385 | }; |
386 | Service = { | 386 | Service = { |
387 | ExecStart = "${config.systemd.package}/lib/systemd/systemd-socket-proxyd --exit-idle-time=60s 127.0.0.1:${toString (port + 1)}"; | 387 | ExecStart = "${config.systemd.package}/lib/systemd/systemd-socket-proxyd --exit-idle-time=60s 127.0.0.1:${toString (port + 1)}"; |
388 | Restart = "always"; | ||
389 | RestartSec = "23s"; | ||
388 | }; | 390 | }; |
389 | }) [{ host = "proxy.ssh.math.lmu.de"; port = 8118; } { host = "proxy.vidhar"; port = 8120; } { host = "proxy.mathw0h"; port = 8122; } { host = "proxy.mathw0e"; port = 8124; }]); | 391 | }) [{ 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}" { | 392 | sockets = listToAttrs (map (port: nameValuePair "proxy-to-autossh-socks@${toString port}" { |