Flake for my NixOS devices
1_default:
2 @just --list --unsorted --justfile {{justfile()}}
3
4[private]
5alias u := update
6# u: update all inputs
7update:
8 nix flake update
9
10[private]
11alias b := build
12# b: build the configuration
13build:
14 nh os build .
15
16[private]
17alias bt := boot
18# bt: make the configuration the boot default without activating it
19boot:
20 nh os boot .
21
22[private]
23alias s := switch
24# s: activate configuration & add to boot menu
25switch:
26 nh os switch --ask .
27
28[private]
29alias c := check
30# c: run all checks for the current system
31check:
32 nix build --show-trace .#uberCheck.$(nix eval --impure --raw --expr 'builtins.currentSystem')
33
34[private]
35alias f := format
36# f: format this flake
37format:
38 nix fmt
39
40[private]
41alias r := repl
42# r: start a debugging repl
43repl:
44 nix repl .#repl
45
46[private]
47alias gc := garbage-collect
48# gc: run a garbage collection
49garbage-collect:
50 nh clean all
51
52[private]
53alias iso := generate-iso
54generate-iso:
55 nom build .#nixosConfigurations.installer.config.system.build.isoImage