feat: customize label

This commit is contained in:
punkfairie 2025-06-03 19:44:24 -07:00
parent 000b5437f9
commit c01fd267c9
Signed by: punkfairie
GPG key ID: B3C5488E9A1A7CA6

View file

@ -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: