feat: customize label
This commit is contained in:
parent
000b5437f9
commit
c01fd267c9
1 changed files with 8 additions and 0 deletions
8
Justfile
8
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:
|
||||
|
|
Loading…
Reference in a new issue