From 51feac4edbe6b60dab5f731a8adaf3d8d369a1bf Mon Sep 17 00:00:00 2001 From: KJ Tsanaktsidis Date: Tue, 6 Jan 2026 21:51:52 +1100 Subject: Ahah, i have labsrv01 --- nixos-update.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'nixos-update.rb') 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 -- cgit v1.2.3