Also first instance of getting server up with working certificate
right away, through cloud user data.
Former-commit-id: 459b45ccc5
10 lines
333 B
Nix
10 lines
333 B
Nix
{ inputs, pkgs, ... }:
|
|
pkgs.writeShellApplication {
|
|
name = "update-instance";
|
|
runtimeInputs = [ pkgs.nixos-rebuild ];
|
|
text = ''
|
|
instance="''${1:-}"
|
|
connect_host="''${2:-$1}"
|
|
nixos-rebuild switch --flake "${inputs.self}#$instance" --target-host "$connect_host" --build-host "$connect_host" --use-remote-sudo
|
|
'';
|
|
}
|