Oliver Davies
5ebe064a28
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.
20 lines
314 B
Makefile
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
|