Skip to content

Commit

Permalink
nixos_rebuild: fix pure-eval setting
Browse files Browse the repository at this point in the history
  • Loading branch information
mkg20001 committed Apr 2, 2024
1 parent 6a12d3e commit eb62dc3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
name: Release and Deploy collection
on:
workflow_dispatch:
push:
tags:
- 'v*'

jobs:
releaseanddeploy:
Expand Down
2 changes: 1 addition & 1 deletion roles/nixos_rebuild/templates/script.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -eux

{% if deploy_with_nixos_anywhere is defined %}
env ANSIBLE_JSON={{ loc_json | quote }} {{ nix_wrapper }} nix run github:nix-community/nixos-anywhere -- --option impure "" --flake "{{ flake_dir }}#{{ flake_target }}" "{{ target_host }}"
env ANSIBLE_JSON={{ loc_json | quote }} {{ nix_wrapper }} nix run github:nix-community/nixos-anywhere -- --option pure-eval "false" --flake "{{ flake_dir }}#{{ flake_target }}" "{{ target_host }}"
{% else %}
env ANSIBLE_JSON={{ loc_json | quote }} {{ nix_wrapper }} nix run nixpkgs#nixos-rebuild -- --flake "{{ flake_dir }}#{{ flake_target }}" "switch" --impure --target-host "{{ target_host }}" --show-trace
{% endif %}

0 comments on commit eb62dc3

Please sign in to comment.