diff --git a/nu/hermenix.nu b/nu/hermenix.nu index 2af5189..7f75578 100644 --- a/nu/hermenix.nu +++ b/nu/hermenix.nu @@ -292,11 +292,11 @@ def "main setup" [ note "The extra substituter flags stop you compiling Determinate Nix yourself." note "--impure is needed to read /etc/hermenix/local.nix at eval time." if (confirm "Build now? (first run can take a while)") { - ^nix build --impure --no-write-lock-file $"($flake)#hermes-guest-image" --option extra-substituters $determinate_sub --option extra-trusted-public-keys $determinate_key + ^nix build --impure --no-write-lock-file --refresh $"($flake)#hermes-guest-image" --option extra-substituters $determinate_sub --option extra-trusted-public-keys $determinate_key ok "built" } else { say "Skipped. Run manually:" - note $" nix build --impure --no-write-lock-file ($flake)#hermes-guest-image \\" + note $" nix build --impure --no-write-lock-file --refresh ($flake)#hermes-guest-image \\" note $" --option extra-substituters ($determinate_sub) \\" note $" --option extra-trusted-public-keys ($determinate_key)" } @@ -486,7 +486,7 @@ def "main remote" [ } let quoted_args = ($args | each {|a| shquote $a } | str join " ") - let remote_cmd = $"nix run --no-write-lock-file (shquote $flake)#hermenix -- ($quoted_args)" + let remote_cmd = $"nix run --no-write-lock-file --refresh (shquote $flake)#hermenix -- ($quoted_args)" say $"Running on ($host): ($args | str join ' ')" ^ssh -t -o StrictHostKeyChecking=accept-new $host $remote_cmd