Flake for my NixOS devices

just: tweaks

+15 -5
+15 -5
justfile
··· 1 _default: 2 @{{ just_executable() }} --list --unsorted --justfile {{ justfile() }} 3 ··· 11 alias b := build 12 # b: build the configuration 13 build: 14 - nh os build . 15 16 [private] 17 alias bt := boot 18 # bt: make the configuration the boot default without activating it 19 boot: 20 - nh os boot . 21 22 [private] 23 alias s := switch 24 # s: activate configuration & add to boot menu 25 switch: 26 - nh os switch --ask . 27 28 [private] 29 alias c := check 30 # c: run all checks for the current system 31 check *ARGS: 32 - nix flake check --show-trace {{ if env("SPOON_PATH", "") != "" {"--override-input spoon \"$SPOON_PATH\" --no-build"} else { "" } }} {{ ARGS }} --log-format internal-json -v |& nom --json 33 34 [private] 35 alias f := format ··· 41 alias r := repl 42 # r: start a debugging repl 43 repl: 44 - nix repl .#repl 45 46 [private] 47 alias gc := garbage-collect ··· 53 alias iso := generate-iso 54 generate-iso: 55 nom build .#nixosConfigurations.installer.config.system.build.isoImage
··· 1 + GARGS := if env("SPOON_PATH", "") != "" {"--override-input spoon \"$SPOON_PATH\""} else { "" } 2 + 3 _default: 4 @{{ just_executable() }} --list --unsorted --justfile {{ justfile() }} 5 ··· 13 alias b := build 14 # b: build the configuration 15 build: 16 + nh os build . {{ GARGS }} 17 18 [private] 19 alias bt := boot 20 # bt: make the configuration the boot default without activating it 21 boot: 22 + nh os boot . {{ GARGS }} 23 24 [private] 25 alias s := switch 26 # s: activate configuration & add to boot menu 27 switch: 28 + nh os switch --ask . {{ GARGS }} 29 30 [private] 31 alias c := check 32 # c: run all checks for the current system 33 check *ARGS: 34 + nix flake check --show-trace {{ GARGS }} {{ ARGS }} --log-format internal-json -v |& nom --json 35 + 36 + [private] 37 + alias d := deploy 38 + # d: deploy the given host 39 + deploy ACTION="switch" HOST="black-mesa": 40 + 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 41 42 [private] 43 alias f := format ··· 49 alias r := repl 50 # r: start a debugging repl 51 repl: 52 + nix repl {{ GARGS }} .#repl 53 54 [private] 55 alias gc := garbage-collect ··· 61 alias iso := generate-iso 62 generate-iso: 63 nom build .#nixosConfigurations.installer.config.system.build.isoImage 64 + 65 +