mirror of
https://github.com/nix-community/nixos-anywhere.git
synced 2024-09-11 16:45:28 +03:00
Add option to ignore systemd errors during deployment. Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
12 lines
340 B
HCL
12 lines
340 B
HCL
resource "null_resource" "nixos-rebuild" {
|
|
triggers = {
|
|
store_path = var.nixos_system
|
|
}
|
|
provisioner "local-exec" {
|
|
environment = {
|
|
SSH_KEY = var.ssh_private_key
|
|
}
|
|
command = "${path.module}/deploy.sh ${var.nixos_system} ${var.target_user} ${var.target_host} ${var.target_port} ${var.ignore_systemd_errors}"
|
|
}
|
|
}
|