diff options
author | Profpatsch <mail@profpatsch.de> | 2020-02-10 16:39:06 +0100 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2020-02-16 02:28:14 +0100 |
commit | 8b4c0c40b8d4038680db028879f020c6f337eb3a (patch) | |
tree | 040d3fe87d279073715f1be2bcbcc2e29ba77cc6 /machines/profpatsch | |
parent | 7d698d2d75bd81e3df64e9683d900d65ff8489a1 (diff) |
machines/profpatsch/shiki: comment out pyrnotify service
Hasn’t been working, but might want to fix in the future.
Diffstat (limited to 'machines/profpatsch')
-rw-r--r-- | machines/profpatsch/shiki.nix | 82 |
1 files changed, 41 insertions, 41 deletions
diff --git a/machines/profpatsch/shiki.nix b/machines/profpatsch/shiki.nix index f6c57973..90e91ffc 100644 --- a/machines/profpatsch/shiki.nix +++ b/machines/profpatsch/shiki.nix @@ -388,47 +388,47 @@ in { }) ({ - services.pyrnotify-ssh-connection = { - description = "ssh connection to make pyrnotify work"; - serviceConfig = { - # TODO: get out of the gpg-agent service directly - Environment = ''"SSH_AUTH_SOCK=%t/gnupg/S.gpg-agent.ssh"''; - ExecStart = pkgs.writeScript "pyrnotify-start-ssh" '' - #!${pkgs.stdenv.shell} - set -e - # first delete the socket file if it exists - # otherwise the forward doesn’t work - ${lib.getBin pkgs.openssh}/bin/ssh \ - bigmac \ - "rm /home/bigmac/.weechat/pyrnotify.socket" - # forwards the remote socket over ssh - # thE options make it disconnect after 45 sec - # by sending a keepalive packet every 15 seconds - # and retrying 3 times - ${lib.getBin pkgs.openssh}/bin/ssh \ - -o ServerAliveInterval=15 \ - -o ServerAliveCountMax=3 \ - -o ExitOnForwardFailure=yes \ - -R /home/bigmac/.weechat/pyrnotify.socket:localhost:8099 \ - -N \ - bigmac - ''; - }; - requires = [ "gpg-agent.service" ]; - after = [ "gpg-agent.service" ]; - }; - services.pyrnotify-listen = rec { - description = "get notified about weechat messages"; - serviceConfig = { - ExecStart = "${lib.getBin pkgs.python - }/bin/python ${myPkgs.pyrnotify} 8099"; - Restart = "on-failure"; - RestartSec = "5s"; - }; - bindsTo = [ "pyrnotify-ssh-connection.service" ]; - after = [ "pyrnotify-ssh-connection.service" ]; - wantedBy = [ "default.target" ]; - }; + # services.pyrnotify-ssh-connection = { + # description = "ssh connection to make pyrnotify work"; + # serviceConfig = { + # # TODO: get out of the gpg-agent service directly + # Environment = ''"SSH_AUTH_SOCK=%t/gnupg/S.gpg-agent.ssh"''; + # ExecStart = pkgs.writeScript "pyrnotify-start-ssh" '' + # #!${pkgs.stdenv.shell} + # set -e + # # first delete the socket file if it exists + # # otherwise the forward doesn’t work + # ${lib.getBin pkgs.openssh}/bin/ssh \ + # bigmac \ + # "rm /home/bigmac/.weechat/pyrnotify.socket" + # # forwards the remote socket over ssh + # # thE options make it disconnect after 45 sec + # # by sending a keepalive packet every 15 seconds + # # and retrying 3 times + # ${lib.getBin pkgs.openssh}/bin/ssh \ + # -o ServerAliveInterval=15 \ + # -o ServerAliveCountMax=3 \ + # -o ExitOnForwardFailure=yes \ + # -R /home/bigmac/.weechat/pyrnotify.socket:localhost:8099 \ + # -N \ + # bigmac + # ''; + # }; + # requires = [ "gpg-agent.service" ]; + # after = [ "gpg-agent.service" ]; + # }; + # services.pyrnotify-listen = rec { + # description = "get notified about weechat messages"; + # serviceConfig = { + # ExecStart = "${lib.getBin pkgs.python + # }/bin/python ${myPkgs.pyrnotify} 8099"; + # Restart = "on-failure"; + # RestartSec = "5s"; + # }; + # bindsTo = [ "pyrnotify-ssh-connection.service" ]; + # after = [ "pyrnotify-ssh-connection.service" ]; + # wantedBy = [ "default.target" ]; + # }; }) ]; |