use correct variable

This commit is contained in:
Daylin Morgan 2024-01-25 10:47:36 -06:00
parent ec6bc91504
commit 42b2ab7dac
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F

6
styx
View file

@ -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"
} }