Files
nixos-setup/bin/lib/types.nu
T

32 lines
591 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 }
}