From 7b3d900430c43a58b60f3bfc693a2eca60b7cb40 Mon Sep 17 00:00:00 2001 From: Don Harper Date: Thu, 1 Feb 2024 07:17:00 -0600 Subject: [PATCH] new targets --- makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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)