From c7d63609dad75ae7a9aa8211b2a9349248d88980 Mon Sep 17 00:00:00 2001 From: osbm Date: Sat, 12 Oct 2024 12:03:19 +0300 Subject: [PATCH] try new makefile command --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7bbdae6..61476b8 100644 --- a/Makefile +++ b/Makefile @@ -8,5 +8,9 @@ check-status: echo "Git is clean. :)" build: check-status - NIXOS_LABEL := $(shell git rev-parse HEAD) - sudo nixos-rebuild switch --flake . + @NIXOS_LABEL=$$(git rev-parse HEAD) && \ + echo "Setting NixOS label to commit hash: $$NIXOS_LABEL" && \ + sudo nixos-rebuild switch --flake . --arg config "'{ system.label = \"$$NIXOS_LABEL\"; }'" + + +.PHONY: check-status build