dotfiles/justfile
Oliver Davies 5ebe064a28 Simplify nixos-* justfile recipes
Make the hostname configurable for NixOS and remove the need to specify
the profile name when running `nixos-rebuild` commands as the hostname
can be used.
2024-03-19 00:13:01 +00:00

20 lines
314 B
Makefile

profile := `hostname`
_default:
just --list
check:
nix flake check
nixos-build:
sudo nixos-rebuild build --flake ".#{{ profile }}"
nixos-switch:
sudo nixos-rebuild switch --flake ".#{{ profile }}"
nixos-test:
sudo nixos-rebuild test --flake ".#{{ profile }}"
update:
nix flake update