this repo has no description
1GARGS := if env("SPOON_PATH", "") != "" { "--override-input spoon \"$SPOON_PATH\"" } else { "" }
2
3_default:
4 @{{ just_executable() }} --list --unsorted --justfile {{ justfile() }}
5
6alias u := update
7
8# u: update all inputs
9update:
10 nix flake update
11
12alias b := build
13
14# b: build the configuration
15build:
16 nh os build -k . {{ GARGS }}
17
18# bu: build and update
19
20alias bu := build-update
21
22build-update:
23 nh os build -k -u . {{ GARGS }}
24
25alias bt := boot
26
27# bt: make the configuration the boot default without activating it
28boot:
29 nh os boot -k . {{ GARGS }}
30
31alias s := switch
32
33# s: activate configuration & add to boot menu
34switch:
35 nh os switch -k --ask . {{ GARGS }}
36
37alias c := check
38
39# c: run all checks for the current system
40check *ARGS:
41 nom build --show-trace ".#uberCheck.$(nix eval --impure --raw --expr 'builtins.currentSystem')" --keep-going {{ GARGS }} {{ ARGS }}
42
43alias d := deploy
44
45# d: deploy the given host
46deploy ACTION="switch" HOST="black-mesa":
47 NIX_SSHOPTS="-p 8069" nixos-rebuild {{ ACTION }} --flake .#{{ HOST }} --build-host {{ HOST }}.lan --target-host {{ HOST }}.lan --sudo --override-input spoon "git+https://codeberg.org/spoonbaker/mono?ref=devel" --refresh
48
49alias f := format
50
51# f: format this flake
52format:
53 nix fmt
54
55alias r := repl
56
57# r: start a debugging repl
58repl:
59 nix repl {{ GARGS }} .#repl
60
61alias gc := garbage-collect
62
63# gc: run a garbage collection
64garbage-collect:
65 nh clean all
66
67alias iso := generate-iso
68
69generate-iso:
70 nom build .#nixosConfigurations.installer.config.system.build.isoImage