summaryrefslogtreecommitdiff
path: root/nixos-update.rb
diff options
context:
space:
mode:
authorKJ Tsanaktsidis <kj@kjtsanaktsidis.id.au>2026-01-06 21:51:52 +1100
committerKJ Tsanaktsidis <kj@kjtsanaktsidis.id.au>2026-01-06 21:51:52 +1100
commit51feac4edbe6b60dab5f731a8adaf3d8d369a1bf (patch)
tree798fe89fefa166c680fccc0e7cdcf82beb5b204e /nixos-update.rb
parentcb35955d16f7c39ea1ccc9258ffdffa94e56a9c7 (diff)
Ahah, i have labsrv01
Diffstat (limited to 'nixos-update.rb')
-rwxr-xr-xnixos-update.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/nixos-update.rb b/nixos-update.rb
index 2640835..55c61e6 100755
--- a/nixos-update.rb
+++ b/nixos-update.rb
@@ -71,12 +71,12 @@ class NixOSUpdater
def decrypt_secrets
cmd = TTY::Command.new(printer: :null)
- result = cmd.run(sops_exe, 'decrypt', '--output-type', 'json', "#{@system_def}/secrets.yaml")
+ result = cmd.run('sops', 'decrypt', '--output-type', 'json', "#{@system_def}/secrets.yaml")
JSON.parse(result.out)
end
def perform_install
- puts "### Performing initial installation of #{@system_flake} to #{@target_host} ###"
+ puts "### Performing initial installation of #{@system_flake} to #{@target} ###"
secrets = decrypt_secrets
@@ -87,13 +87,13 @@ class NixOSUpdater
cmd_args = [
'nixos-anywhere',
- '--disk-encryption-keys', "#{dir}/luks_passphrase", "#{dir}/luks_passphrase",
+ '--disk-encryption-keys', "/run/secrets/luks_passphrase", "#{dir}/luks_passphrase",
'--extra-files', "#{dir}/copy_dir",
'--flake', ".##{@system_def}"
]
cmd_args << '--build-on-remote' if RUBY_PLATFORM !~ /linux/
- cmd_args << @target_host
+ cmd_args << @target
# Execute nixos-anywhere
cmd = TTY::Command.new