diff --git a/makefile b/makefile index 9115c17..d5a054f 100644 --- a/makefile +++ b/makefile @@ -1,5 +1,9 @@ +HOSTNAME := $(shell hostname -s) +UNAME_S := $(shell uname -s) +UNAME_M := $(shell uname -m) + all: - doas nixos-rebuild switch --flake .#$${HOSTNAME_SHORT} + doas nixos-rebuild switch --flake .#${HOSTNAME} weekly: pull clean update ci all push @@ -28,3 +32,9 @@ pull: ci: git commit -m"updates from makefile" --all + +check: + @nix flake check --show-trace $(ARGS) + +test: check + doas nixos-rebuild dry-build --flake ./#$(HOSTNAME)