Justfile: dont try to render templates when offline
This commit is contained in:
parent
d1ef08ec64
commit
5faccc4cab
1 changed files with 6 additions and 2 deletions
8
Justfile
8
Justfile
|
@ -25,8 +25,12 @@ _device recipe dir +moreargs="":
|
||||||
_render_templates:
|
_render_templates:
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -ex
|
set -ex
|
||||||
source $(just -v _get_nix_path {{invocation_directory()}}/nix/variables/versions.nix)
|
if ! ip route get 0.0.0.1; then
|
||||||
nix/scripts/pre-eval-fixed.sh nix/home-manager/profiles/dotfiles/vcsh{.tmpl,}.nix
|
echo No route to WAN. Skipping template rendering...
|
||||||
|
else
|
||||||
|
source $(just -v _get_nix_path {{invocation_directory()}}/nix/variables/versions.nix)
|
||||||
|
nix/scripts/pre-eval-fixed.sh nix/home-manager/profiles/dotfiles/vcsh{.tmpl,}.nix
|
||||||
|
fi
|
||||||
|
|
||||||
_rebuild-device dir rebuildarg="dry-activate" +moreargs="": _render_templates
|
_rebuild-device dir rebuildarg="dry-activate" +moreargs="": _render_templates
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue