Skip to content

feat(fish): add u to update every machine - #18

Merged
shekhirin merged 2 commits into
mainfrom
feat/u-all-machines
Nov 25, 2026
Merged

shekhirin merged 2 commits into
mainfrom
feat/u-all-machines

Conversation

@shekhirin

Copy link
Copy Markdown
Owner

Moves u from the NixOS-only fish module to the shared one, so it works on the box and both laptops. It picks the flake configuration by hostname (box, shekhirin → personal, shekhirin-tempo → work).

  • box: unchanged (nix flake prefetch --refresh + nixos-rebuild switch).
  • laptops: nix build --refresh github:shekhirin/dotfiles#darwinConfigurations.<target>.system as the user (so your SSH keys fetch the private boxctl/pyrex inputs, which root can't), then sudo nix-env --set + darwin-rebuild activate, the same as just switch. Uses the real Nix from IETS_NIX_BIN_DIR, as just update does.

Checked: nix fmt (no changes), statix, and nix eval of the function body for all three configurations.

Move the box-only u function to the shared fish config. The box keeps its nixos-rebuild switch; the laptops build their darwin configuration from github:shekhirin/dotfiles as the user, so SSH keys fetch the private inputs, then activate it with sudo, as just switch does.
statix rejects repeated keys in attribute sets, which fails the flake checks.
@shekhirin
shekhirin merged commit 7268414 into main Nov 25, 2026
2 checks passed
@shekhirin
shekhirin deleted the feat/u-all-machines branch November 25, 2026 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant