From 9d48dd6c16f1342bdbf05e6ea4068cbc28aca6b9 Mon Sep 17 00:00:00 2001 From: alexion Date: Thu, 3 Sep 2026 16:24:28 -0400 Subject: [PATCH] fix(nixos): deploy from monorepo checkout --- configs/nixos/AGENTS.md | 2 ++ configs/nixos/modules/shell/fish/functions/deploy-to.fish | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/configs/nixos/AGENTS.md b/configs/nixos/AGENTS.md index 787d496..a1e2c3d 100644 --- a/configs/nixos/AGENTS.md +++ b/configs/nixos/AGENTS.md @@ -44,3 +44,5 @@ - `sops.secrets..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. 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. diff --git a/configs/nixos/modules/shell/fish/functions/deploy-to.fish b/configs/nixos/modules/shell/fish/functions/deploy-to.fish index 24853f7..e14ad65 100644 --- a/configs/nixos/modules/shell/fish/functions/deploy-to.fish +++ b/configs/nixos/modules/shell/fish/functions/deploy-to.fish @@ -48,6 +48,6 @@ end set escaped_branch (string escape -- $branch) 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