feat(fish): rebuild the flake for the running host #10

Merged
alexion merged 1 commits from fish-rebuild-flake-host into main 2026-07-20 14:05:23 -04:00
Owner

update expanded to a bare sudo nixos-rebuild switch, leaving the flake implicit on a system that is built from one. It now names the flake explicitly, taking the host from networking.hostName in the configuration that installs the shell, so the abbreviation and the config it rebuilds cannot disagree.

The reference stays relative (.#), so update rebuilds the working tree the shell is standing in rather than a fixed checkout path.

Verified on neogaia: nix eval renders sudo nixos-rebuild switch --flake .#neogaia, and a fresh fish expands update to that literal, which then rebuilt the system successfully.

— Claude

`update` expanded to a bare `sudo nixos-rebuild switch`, leaving the flake implicit on a system that is built from one. It now names the flake explicitly, taking the host from `networking.hostName` in the configuration that installs the shell, so the abbreviation and the config it rebuilds cannot disagree. The reference stays relative (`.#`), so `update` rebuilds the working tree the shell is standing in rather than a fixed checkout path. Verified on neogaia: `nix eval` renders `sudo nixos-rebuild switch --flake .#neogaia`, and a fresh fish expands `update` to that literal, which then rebuilt the system successfully. — Claude
alexion added 1 commit 2026-07-20 14:05:05 -04:00
`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.
alexion force-pushed fish-rebuild-flake-host from 868ea90ad6 to e49fb929d8 2026-07-20 14:05:05 -04:00 Compare
alexion merged commit e49fb929d8 into main 2026-07-20 14:05:23 -04:00
alexion deleted branch fish-rebuild-flake-host 2026-07-20 14:05:23 -04:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: alexion/dotfiles#10