Skip to content

Commit

Permalink
justfile: add use-substitutes flag to deploy cmds
Browse files Browse the repository at this point in the history
connections to upstream cno is almost always faster than uploading through a crappy router
  • Loading branch information
soopyc committed Aug 5, 2024
1 parent 032e173 commit 4128a98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ test system="":
nixos-rebuild -v -L test --flake .#{{system}} --accept-flake-config

deploy system:
nixos-rebuild switch --flake .#{{system}} --target-host {{system}} --use-remote-sudo -v -L
nixos-rebuild switch --flake .#{{system}} --target-host {{system}} --use-remote-sudo -v -L --use-substitutes

dry-deploy system:
nixos-rebuild build --flake .#{{system}} --target-host {{system}} --use-remote-sudo -v -L
nixos-rebuild build --flake .#{{system}} --target-host {{system}} --use-remote-sudo -v -L --use-substitutes

# switch to the current configuration
switch system="": sudo_cache
Expand Down

0 comments on commit 4128a98

Please sign in to comment.