nixos-config/justfile
2024-11-22 12:43:30 +01:00

23 lines
434 B
Makefile

set quiet := true
default:
just --list --unsorted
rebuild mode='switch':
nh os {{ if mode == 'reboot' { 'boot' } else { mode } }} .
{{ if mode == 'reboot' { 'reboot' } else { '' } }}
update:
nix flake update
fmt:
nix fmt
check:
nix flake check
dev shell='default':
nix develop .#{{ shell }} --command zsh
build-iso:
nix run nixpkgs#nixos-generators -- --format iso --flake .#installer -o result