Skip to content

Commit 42000e2

Browse files
committed
Replace nrb/ndr shell functions with 'just' command wrappers and update documentation
1 parent 3016cce commit 42000e2

3 files changed

Lines changed: 22 additions & 10 deletions

File tree

AGENTS.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,16 +122,23 @@ The Chief maintains a separate repository for personal packages at `~/nix-packag
122122

123123
```bash
124124
# Rebuild and switch (preferred)
125-
nh os switch . # or use the 'nrb' shell function
125+
just build # or use the 'nrb' shell function
126126

127-
# Dry-run rebuild
128-
nh os switch . -- --dry-run
127+
# Dry-run build
128+
just dry-build # or use the 'ndr' shell function
129+
130+
# Build the Travel-Canoe (ISO)
131+
just iso
132+
133+
# Ghost Cave (VM with Disko)
134+
just vm
129135

130136
# Update flake inputs
131-
nix flake update
137+
just up # or use the 'up' shell function
132138

133-
# Format (alejandra via pre-commit and flake check)
139+
# Format (alejandra via pre-commit and nix flake check)
134140
nix flake check
141+
```
135142

136143
# Lint Nix (also run automatically by pre-commit hooks)
137144
statix check .

home/shell.nix

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -402,12 +402,12 @@ in {
402402
return 127
403403
}
404404
405-
# Stage dotfiles (used by nrb/ndr/up functions)
405+
# Stage dotfiles (used by build/up functions)
406406
st() { git -C "${userConfig.dotfilesDir}" add .; }
407-
nrb() { st && nh os switch; }
408-
ndr() { st && nh os build; }
409-
up() { st && nh os switch --update; }
410-
up-browsers() { st && nix flake update nixpkgs && nh os switch; }
407+
nrb() { st && just build; }
408+
ndr() { st && just dry-build; }
409+
up() { st && just up; }
410+
up-browsers() { st && just up-browsers; }
411411
412412
[[ -z "$CLEAN_PATH" ]] && readonly CLEAN_PATH='${cleanPath}'
413413
[[ -z "$COPILOT_BIN" ]] && readonly COPILOT_BIN='${copilotBin}'

justfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ up:
3131
nix flake update
3232
nh os switch . --update
3333

34+
# Update only browser inputs and switch
35+
up-browsers:
36+
nix flake update nixpkgs
37+
nh os switch .
38+
3439
# Deploy Ninja brain to a remote IP via SSH (WIPES DISK!)
3540
deploy-ninja ip:
3641
nix run github:nix-community/nixos-anywhere -- --flake .#ninja root@{{ip}}

0 commit comments

Comments
 (0)