feat(fish): rebuild the flake for the running host #10
Reference in New Issue
Block a user
Delete Branch "fish-rebuild-flake-host"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
updateexpanded to a baresudo nixos-rebuild switch, leaving the flake implicit on a system that is built from one. It now names the flake explicitly, taking the host fromnetworking.hostNamein the configuration that installs the shell, so the abbreviation and the config it rebuilds cannot disagree.The reference stays relative (
.#), soupdaterebuilds the working tree the shell is standing in rather than a fixed checkout path.Verified on neogaia:
nix evalrenderssudo nixos-rebuild switch --flake .#neogaia, and a fresh fish expandsupdateto that literal, which then rebuilt the system successfully.— Claude
868ea90ad6toe49fb929d8