From c01fd267c95e5a3029c4ddd230ae16193864de2a Mon Sep 17 00:00:00 2001 From: punkfairie Date: Tue, 3 Jun 2025 19:44:24 -0700 Subject: [PATCH] feat: customize label --- Justfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Justfile b/Justfile index d90db9e..71ef84c 100644 --- a/Justfile +++ b/Justfile @@ -4,6 +4,14 @@ default: defhost := `hostname` defuser := env_var('USER') +date := `date '+%F %R'` +branch := `git branch 2>/dev/null | sed -n '/^\* / { s|^\* ||; p; }'` +revision := shell('expr substr "$(git rev-parse HEAD)" 1 7') +export NIXOS_LABEL_VERSION := date + " on " + branch + "@" + revision + +test: + echo $NIXOS_LABEL_VERSION + alias dh := deployhome [group('home')] deployhome user=defuser host=defhost: