2022-04-20 11:01:51 +00:00
|
|
|
#!/usr/bin/env ./sshtool
|
|
|
|
|
|
|
|
copy nix/configuration.nix /etc/nixos/configuration.nix
|
|
|
|
copy nix/deuxfleurs.nix /etc/nixos/deuxfleurs.nix
|
|
|
|
copy nix/remote-unlock.nix /etc/nixos/remote-unlock.nix
|
|
|
|
copy cluster/$CLUSTER/cluster.nix /etc/nixos/cluster.nix
|
|
|
|
copy cluster/$CLUSTER/node/$NIXHOST.nix /etc/nixos/node.nix
|
|
|
|
copy cluster/$CLUSTER/node/$NIXHOST.site.nix /etc/nixos/site.nix
|
|
|
|
|
2022-11-28 21:58:39 +00:00
|
|
|
if [ "$CLUSTER" = "staging" ]; then
|
|
|
|
copy nix/nomad-driver-nix.nix /etc/nixos/nomad-driver-nix.nix
|
|
|
|
copy nix/nomad-driver-exec2.nix /etc/nixos/nomad-driver-exec2.nix
|
|
|
|
fi
|
|
|
|
|
2022-10-16 17:36:15 +00:00
|
|
|
# use ./upgrade_nixos instead to upgrade NixOS
|
|
|
|
#cmd "nix-channel --add https://nixos.org/channels/nixos-22.05 nixos"
|
|
|
|
#cmd nixos-rebuild switch --upgrade --show-trace
|
|
|
|
|
|
|
|
cmd nixos-rebuild switch --show-trace
|