nix-setup/sshpc.script.nix

12 lines
276 B
Nix
Raw Normal View History

2024-09-07 01:18:31 +02:00
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
''