Something went wrong. Try again.
Nix flake for personal machines
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334local := `hostname -s`default_deploy_mode := "switch"
# Flake operations
check: nix flake check
fmt: nix fmt
update: nix flake update --commit-lock-file --option commit-lockfile-summary "Update flake.lock"
# System building
sources-to-store: nix-prefetch-url --type sha256 file://{{ justfile_directory() }}/sources/berkeley-mono-typeface.zip nix-prefetch-url --type sha256 file://{{ justfile_directory() }}/sources/to-the-sky.jpg
build-system hostname=local: sources-to-store nom build {{ justfile_directory() }}#nixosConfigurations.{{ hostname }}.config.system.build.toplevel --keep-going
diff: build-system nvd diff /run/current-system {{ justfile_directory() }}/result
# Deploymentdeploy hostname=local mode=default_deploy_mode: (build-system hostname) nix run nixpkgs#nixos-rebuild -- \ {{ mode }} \ --fast --flake {{ justfile_directory() }}#{{ hostname }} \ --target-host {{ hostname }} --build-host {{ hostname }} \ --use-remote-sudo --show-trace