fix(nixos): deploy from monorepo checkout
This commit is contained in:
@@ -44,3 +44,5 @@
|
|||||||
- `sops.secrets.<name>.owner` must name a user known on the decrypting host.
|
- `sops.secrets.<name>.owner` must name a user known on the decrypting host.
|
||||||
Do not set the owner to a guest-only service user unless the host also declares that user.
|
Do not set the owner to a guest-only service user unless the host also declares that user.
|
||||||
Use a host-visible owner plus a shared group mode when the guest service can read the decrypted secret file through its group.
|
Use a host-visible owner plus a shared group mode when the guest service can read the decrypted secret file through its group.
|
||||||
|
- Pikachu deploys from the monorepo checkout copied to `~/dev`.
|
||||||
|
Do not use the old `~/wrk/dotfiles` path for remote rebuild commands.
|
||||||
|
|||||||
@@ -48,6 +48,6 @@ end
|
|||||||
|
|
||||||
set escaped_branch (string escape -- $branch)
|
set escaped_branch (string escape -- $branch)
|
||||||
set escaped_host (string escape -- $host)
|
set escaped_host (string escape -- $host)
|
||||||
set remote_command "cd ~/wrk/dotfiles && git fetch origin && git switch -- $escaped_branch && git reset --hard origin/$escaped_branch && sudo nixos-rebuild switch --flake .#$escaped_host --print-build-logs"
|
set remote_command "cd ~/dev && git fetch origin && git switch -- $escaped_branch && git reset --hard origin/$escaped_branch && sudo nixos-rebuild switch --flake .#$escaped_host --print-build-logs"
|
||||||
|
|
||||||
ssh -t $host $remote_command
|
ssh -t $host $remote_command
|
||||||
|
|||||||
Reference in New Issue
Block a user