From 868ea90ad617fd93fff945d90a6abda0c0f1cd43 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"; };