fix(just): use git directory for deployments
This commit is contained in:
parent
f98cdd558e
commit
6a87dd7211
1 changed files with 1 additions and 1 deletions
2
justfile
2
justfile
|
@ -19,7 +19,7 @@ boot *args:
|
||||||
deploy system user="leo":
|
deploy system user="leo":
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
flake=$(nix eval --impure --raw --expr "(builtins.getFlake \"$PWD\").outPath")
|
flake=$(nix eval --impure --raw --expr "(builtins.getFlake \"git+file://$PWD\").outPath")
|
||||||
nix copy "$flake" --to "ssh://{{user}}@{{system}}"
|
nix copy "$flake" --to "ssh://{{user}}@{{system}}"
|
||||||
# -R/--bypass-root-check is needed because of a Git CVE regression in Nix 2.20
|
# -R/--bypass-root-check is needed because of a Git CVE regression in Nix 2.20
|
||||||
# See NixOS/nix#10202, viperML/nh#200
|
# See NixOS/nix#10202, viperML/nh#200
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue