mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 14:20:44 -06:00
use correct variable
This commit is contained in:
parent
ec6bc91504
commit
42b2ab7dac
1 changed files with 3 additions and 3 deletions
6
styx
6
styx
|
@ -58,7 +58,7 @@ store() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
nom build "$FLAKE_PATH#nixosConfigurations.$(hostname).config.system.build.toplevel"
|
nom build "$FLAKE_PATH#nixosConfigurations.${HOSTNAME}.config.system.build.toplevel"
|
||||||
case "$1" in
|
case "$1" in
|
||||||
switch | boot | test ) sudo ./result/bin/switch-to-configuration "$1";;
|
switch | boot | test ) sudo ./result/bin/switch-to-configuration "$1";;
|
||||||
esac
|
esac
|
||||||
|
@ -66,7 +66,7 @@ build() {
|
||||||
|
|
||||||
dry() {
|
dry() {
|
||||||
# poor mans nix flake check
|
# poor mans nix flake check
|
||||||
nix build "$FLAKE_PATH#nixosConfigurations.$(hostname).config.system.build.toplevel" --dry-run
|
nix build "$FLAKE_PATH#nixosConfigurations.${HOSTNAME}.config.system.build.toplevel" --dry-run
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ cache() {
|
||||||
end=$(date +%s)
|
end=$(date +%s)
|
||||||
runtime=$(date -d@$((end-start)) +'%M minutes, %S seconds')
|
runtime=$(date -d@$((end-start)) +'%M minutes, %S seconds')
|
||||||
|
|
||||||
echo "Built host: ${HOSTNAME} in ${runtime} seconds" >> "$GITHUB_OUTPUT_SUMMARY"
|
echo "Built host: ${HOSTNAME} in ${runtime} seconds" >> "$GITHUB_STEP_SUMMARY"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue