nix-setup/sshpc.script.nix
2024-09-07 01:18:31 +02:00

12 lines
276 B
Nix

with import <nixpkgs> {};
pkgs.writeShellScriptBin "sshpc" ''
#!/bin/sh
ssh -p 23 root@tudbut.de etherwake 00:19:99:d2:9e:27
sleep 10
ssh -tp 23 root@tudbut.de ssh -t tudbut@192.168.178.144
ssh -p 23 root@tudbut.de ssh tudbut@192.168.178.144 sudo systemctl suspend
''