···44default: build
5566build:
77- # TODO find a way to generate hardware configuration and avoid impure
87 sudo nixos-rebuild \
99- --impure \
108 --flake '.#${host}' \
119 switch
12101311test:
1412 nixos-rebuild \
1515- --impure \
1613 --flake '.#testvm' \
1714 build-vm
1815 ./result/bin/run-testvm-vm
19162017diff:
2118 nixos-rebuild \
2222- --impure \
2319 --flake '.#${host}' \
2420 build
2521 nix store diff-closures \
···28242925update:
3026 nix flake update
2727+2828+install:
2929+ # This consumes significant memory on the live USB because dependencies are
3030+ # downloaded to tmpfs. The configuration must be small, or the machine must
3131+ # have a lot of RAM.
3232+ sudo nix \
3333+ --extra-experimental-features 'nix-command flakes' \
3434+ run 'github:nix-community/disko/latest#disko-install' -- \
3535+ --write-efi-boot-entries \
3636+ --flake '.#${host}' \
3737+ --disk main '${device}'