1# friendship ended with Makefile 2# I LOVE justFILE!!!!!! 3 4# build the current configuration 5build: 6 nixos-rebuild build --flake .# 7 8# build and test the configuration, but don't switch 9test: 10 nixos-rebuild test --flake .# 11 12# switch to the current configuration 13switch: 14 nixos-rebuild switch --flake .# 15 16# run utility programs 17utils recipe="list": 18 @echo "Running utils/{{recipe}}" 19 @cd utils && just {{recipe}} 20 21# update an input in the flake lockfile 22update-input input: 23 nix flake lock --update-input {{input}} 24 25# build the flake on a non-nixos platform 26ebuild system: 27 nix build -j8 .#nixosConfigurations."{{system}}".config.system.build.toplevel