Simplify nixos-* justfile recipes

This commit is contained in:
Oliver Davies 2024-03-26 20:44:45 +00:00
parent 8dc0e30556
commit 6287b83d33

View file

@ -1,5 +1,3 @@
profile := `hostname`
_default:
just --list
@ -7,13 +5,13 @@ check:
nix flake check
nixos-build:
sudo nixos-rebuild build --flake ".#{{ profile }}"
sudo nixos-rebuild build --flake .
nixos-switch:
sudo nixos-rebuild switch --flake ".#{{ profile }}"
sudo nixos-rebuild switch --flake .
nixos-test:
sudo nixos-rebuild test --flake ".#{{ profile }}"
sudo nixos-rebuild test --flake .
update:
nix flake update