variable "domain" { type = string } variable "hostname" { type = string } variable "config" { type = string } variable "initialUser" { type = object({ displayName = string username = string password = string email = string }) } module "deploy" { # source = "github.com/nix-community/nixos-anywhere//terraform/all-in-one" source = "github.com/KiaraGrouwstra/nixos-anywhere?ref=special-args-nested-flake-fixed//terraform/all-in-one" nixos_system_attr = ".#nixosConfigurations.${var.config}.config.system.build.toplevel" nixos_partitioner_attr = ".#nixosConfigurations.${var.config}.config.system.build.diskoScriptNoDeps" # when instance id changes, it will trigger a reinstall instance_id = var.hostname target_user = "kiara" target_host = "${var.hostname}.abundos.eu" extra_files_script = "${path.module}/../pass-ssh-key.sh" extra_environment = { host = var.hostname } special_args = { terraform = { domain = var.domain hostname = var.hostname initialUser = var.initialUser } } nix_options = { show-trace = true } # build_on_remote = true }