config/justfile

28 lines
595 B
Makefile

@_default:
#just --choose # TODO: achieve something better with `gum`
#just --list --list-prefix ' just '
just "$(gum choose $(just --summary --unsorted))"
report:
nix eval .#nixosReports --json | yq . --yaml-output
update:
git reset flake.lock
git restore flake.lock
git pull --rebase --autostash
nix flake update --commit-lock-file
@mkdir -p .direnv/
@echo "$(date +%Y-%m-%d)" > .direnv/pull-date
build:
nixos-rebuild build --flake .
test:
sudo nixos-rebuild test --flake .
switch:
sudo nixos-rebuild switch --flake .
boot:
sudo nixos-rebuild boot --flake .