From e49fb929d80db4e0928a3b7e291cc6d23d6aa5de Mon Sep 17 00:00:00 2001 From: alexion Date: Mon, 20 Jul 2026 13:57:19 -0400 Subject: [PATCH] feat(fish): rebuild the flake for the running host `nixos-rebuild switch` alone leaves the flake implicit, which is not how this system is built. Name it explicitly, taking the host from the configuration that installs the shell so the two cannot disagree. The reference stays relative, so `update` rebuilds the working tree the shell is standing in rather than a fixed checkout. --- modules/fish/fish.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/fish/fish.nix b/modules/fish/fish.nix index 8432357..452a93f 100644 --- a/modules/fish/fish.nix +++ b/modules/fish/fish.nix @@ -79,7 +79,7 @@ in jctl = "journalctl -p 3 -xb"; # Rebuild the system, and reclaim disk from old generations. - update = "sudo nixos-rebuild switch"; + update = "sudo nixos-rebuild switch --flake .#${config.networking.hostName}"; cleanup = "sudo nix-collect-garbage -d"; };