40 lines
793 B
Nu
40 lines
793 B
Nu
const REPO_ROOT = path self | path dirname | path dirname | path dirname
|
|
|
|
export def hm-actions [] {
|
|
["switch", "build"]
|
|
}
|
|
|
|
export def remote-cmds [] {
|
|
[
|
|
"test"
|
|
"dry-activate"
|
|
"run"
|
|
"switch"
|
|
"build"
|
|
"boot"
|
|
]
|
|
}
|
|
|
|
export def image-targets [] {
|
|
["iso", "pi1", "pi2"]
|
|
}
|
|
|
|
export def secret-names [] {
|
|
cd $REPO_ROOT
|
|
glob secrets/*.age | each {|f| $f | path basename | str replace ".age" "" }
|
|
}
|
|
|
|
export def updatable-pkgs [] {
|
|
cd $REPO_ROOT
|
|
glob "pkgs/*/update.sh"
|
|
| each {|f| $f | path dirname | path basename }
|
|
}
|
|
|
|
# Gitea HTML templates, for `skyg render html-tpl` tab-completion.
|
|
export def html-tpl-files [] {
|
|
cd $REPO_ROOT
|
|
glob "**/*.tmpl"
|
|
| each {|f| $f | path relative-to $REPO_ROOT }
|
|
| sort
|
|
}
|