2022-01-16 17:20:10 +01:00
|
|
|
#!/usr/bin/env xonsh
|
|
|
|
|
|
|
|
hosts = [
|
|
|
|
"grav",
|
|
|
|
"heimdall",
|
|
|
|
"nixos-test-vm",
|
|
|
|
]
|
|
|
|
|
|
|
|
for host in hosts:
|
|
|
|
fqdn = "{}.2li.local".format(host)
|
|
|
|
print(fqdn)
|
|
|
|
print("-" * len(fqdn))
|
2022-01-16 18:20:16 +01:00
|
|
|
ssh @(fqdn) 'cd .nixos && git pull && sudo nixos-rebuild -j auto switch'
|
2022-01-16 17:20:10 +01:00
|
|
|
print("")
|
|
|
|
print("")
|