-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
57 lines (44 loc) · 1.4 KB
/
justfile
File metadata and controls
57 lines (44 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# --- JUNGLE MAGIC COMMANDS ---
# Build the system for macOS (drb alias)
darwin-build:
sudo nix run github:LnL7/nix-darwin -- switch --flake .#Mac
# Build the system (nrb alias)
build:
nh os switch .
# Dry-run build (match old ndr behavior)
dry-build:
nix build .#nixosConfigurations.$(hostname).config.system.build.toplevel --dry-run
# Build the Travel-Canoe (minimal ISO)
iso:
nix build .#iso
# Build the Travel-Canoe with COSMIC desktop (live ISO)
iso-cosmic:
nix build .#iso-cosmic -o result-cosmic
# Run the Magic Eye (Checks)
check:
nix flake check
# Format all stones (treefmt)
fmt:
nix fmt
# Ghost Cave (VM with Disko)
vm:
nix build .#nixosConfigurations.ninja.config.system.build.vmWithDisko --no-link --print-out-paths
# To run: ./result/bin/run-ninja-vm
# Clear the jungle (Cleanup)
clean:
nh clean all --keep 5
# Update the whole jungle (Flake Update)
up:
nix flake update
nh os switch . --update
# Update only browser inputs and switch
up-browsers:
nix flake update nixpkgs
nh os switch .
# Activate git pre-commit hooks
setup-hooks:
git config core.hooksPath .githooks
@echo "Git hooks activated (.githooks/pre-commit)"
# Deploy Ninja brain to a remote IP via SSH (WIPES DISK!)
deploy-ninja ip:
nix run github:nix-community/nixos-anywhere -- --flake .#ninja root@{{ip}}