From ac7f9f8b8a84d7ba0019e1d272e91fb4c58cd85a Mon Sep 17 00:00:00 2001 From: imbytecat Date: Sat, 11 Apr 2026 00:14:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20rebuild=20abbreviation=20=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E4=BB=8E=20hostname=20=E6=8E=A8=E5=AF=BC=20flake=20at?= =?UTF-8?q?tr?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit hostname awesome-mac-mini → flake attr mac-mini hostname awesome-macbook-air → flake attr macbook-air WSL 硬编码 #wsl(唯一 NixOS host) --- .sisyphus/ralph-loop.local.md | 4 +++- home/shell/fish.nix | 7 ++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.sisyphus/ralph-loop.local.md b/.sisyphus/ralph-loop.local.md index c893ec6..4454b72 100644 --- a/.sisyphus/ralph-loop.local.md +++ b/.sisyphus/ralph-loop.local.md @@ -2,11 +2,13 @@ active: true iteration: 3 max_iterations: 500 -completion_promise: "DONE" +completion_promise: "VERIFIED" initial_completion_promise: "DONE" +verification_attempt_id: "89113c03-711f-4bdb-a42c-710b7726f431" started_at: "2026-04-10T15:59:34.105Z" session_id: "ses_28863d32affeOW6Iiz2415uZSk" ultrawork: true +verification_pending: true strategy: "continue" message_count_at_start: 191 --- diff --git a/home/shell/fish.nix b/home/shell/fish.nix index cde8d10..0941ad3 100644 --- a/home/shell/fish.nix +++ b/home/shell/fish.nix @@ -41,11 +41,12 @@ # Sudo: double Escape to prepend sudo bind \e\e 'fish_commandline_prepend sudo' - # Platform-specific rebuild command + # Platform-specific rebuild command (derive flake attr from hostname) if test (uname) = Darwin - abbr --add rebuild "sudo darwin-rebuild switch --flake ~/Developer/nix-config" + set -l attr (scutil --get LocalHostName | string lower | string replace 'awesome-' '') + abbr --add rebuild "sudo darwin-rebuild switch --flake ~/Developer/nix-config#$attr" else - abbr --add rebuild "sudo nixos-rebuild switch --flake ~/Developer/nix-config" + abbr --add rebuild "sudo nixos-rebuild switch --flake ~/Developer/nix-config#wsl" end # WSL clipboard