nixos-anywhere/terraform/nixos-rebuild
Jean-François Roche 4371932193 fix(rebuild): use sudo if rebuild with another user than root
In order to switch the NixOS configuration, we must have root access.
If we are connecting to the target host with a non-root user, we use the "sudo" command.

We could instead use `nixos-rebuild --use-remote-sudo --target-host` but it
would evaluate the nixos system again.
2023-03-31 21:33:05 +02:00
..
deploy.sh fix(rebuild): use sudo if rebuild with another user than root 2023-03-31 21:33:05 +02:00
main.tf fix(rebuild): use sudo if rebuild with another user than root 2023-03-31 21:33:05 +02:00
variables.tf fix(terraform/nixos-rebuild): typo in variables.sh 2023-03-29 09:09:21 +01:00