summaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
authorSeth Flynn <[email protected]>2025-03-09 09:10:36 -0400
committerSeth Flynn <[email protected]>2025-03-09 09:10:36 -0400
commitefc6899c36f500b6dc816fab6c3df531422fee08 (patch)
tree92fe18fb111ebb916f6219cafa81e802d96983db /justfile
parent93ce3dfc4cd53979e3bf4dde2dd8d6d79117a709 (diff)
justfile: pass flake as git type
Diffstat (limited to 'justfile')
-rw-r--r--justfile16
1 files changed, 10 insertions, 6 deletions
diff --git a/justfile b/justfile
index 383abd3..eea92df 100644
--- a/justfile
+++ b/justfile
@@ -14,7 +14,7 @@ rebuild subcmd *args="":
{{ rebuild }} \
{{ subcmd }} \
--use-remote-sudo \
- --flake {{ justfile_directory() }} \
+ --flake 'git+file://{{ justfile_directory() }}' \
{{ args }}
remote-rebuild system subcmd *args="":
@@ -24,26 +24,30 @@ remote-rebuild system subcmd *args="":
--target-host 'root@{{ system }}' \
--no-build-nix \
--use-substitutes \
- --flake '{{ justfile_directory() }}#{{ system }}' \
+ --flake 'git+file://{{ justfile_directory() }}#{{ system }}' \
{{ args }}
eval system *args="":
nix eval \
--no-allow-import-from-derivation \
- '{{ justfile_directory() }}#nixosConfigurations.{{ system }}.config.system.build.toplevel' \
+ 'git+file://{{ justfile_directory() }}#nixosConfigurations.{{ system }}.config.system.build.toplevel' \
{{ args }}
eval-all *args="":
- nix flake check --all-systems --no-build {{ justfile_directory() }} {{ args }}
+ nix flake check \
+ --all-systems \
+ --no-build \
+ 'git+file://{{ justfile_directory() }}' \
+ {{ args }}
update:
nix flake update \
--commit-lock-file \
--commit-lockfile-summary "flake: update all inputs" \
- --flake {{ justfile_directory() }}
+ --flake 'git+file://{{ justfile_directory() }}'
update-input input:
nix flake update {{ input }} \
--commit-lock-file \
--commit-lockfile-summary "flake: update {{ input }}" \
- --flake {{ justfile_directory() }}
+ --flake 'git+file://{{ justfile_directory() }}'