try new makefile command
This commit is contained in:
parent
7c6b6783e7
commit
c7d63609da
1 changed files with 6 additions and 2 deletions
8
Makefile
8
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue