2024-07-01 15:53:59 +02:00
|
|
|
beleth-host := "root@88.99.90.90"
|
2024-07-01 16:08:13 +02:00
|
|
|
beleth-user-host:= "xqtc@88.99.90.90"
|
2024-07-01 15:53:59 +02:00
|
|
|
|
2024-07-01 20:36:17 +02:00
|
|
|
default:
|
|
|
|
@just --choose
|
|
|
|
|
2024-07-01 15:53:59 +02:00
|
|
|
rebuild:
|
2024-07-01 20:36:17 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
HOSTNAME=$(hostname)
|
|
|
|
if [ $HOSTNAME == "alastor" ]; then
|
|
|
|
nh os switch . -- -vv --impure -j 4;
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
nh os switch . -- -vv --impure -j 4;
|
|
|
|
|
2024-07-01 15:53:59 +02:00
|
|
|
|
|
|
|
beleth:
|
|
|
|
nixos-rebuild switch --flake '.#beleth' --build-host {{beleth-host}} --target-host {{beleth-host}}
|
2024-07-01 16:08:13 +02:00
|
|
|
ssh {{beleth-user-host}} "cd; cd nixos-config; git pull; cd; sh build_website.sh"
|