From 42b2ab7dac6cedc663ae7282afdead0ac6e85572 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Thu, 25 Jan 2024 10:47:36 -0600 Subject: [PATCH] use correct variable --- styx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/styx b/styx index 75d8fd7..4009fea 100755 --- a/styx +++ b/styx @@ -58,7 +58,7 @@ store() { } build() { - nom build "$FLAKE_PATH#nixosConfigurations.$(hostname).config.system.build.toplevel" + nom build "$FLAKE_PATH#nixosConfigurations.${HOSTNAME}.config.system.build.toplevel" case "$1" in switch | boot | test ) sudo ./result/bin/switch-to-configuration "$1";; esac @@ -66,7 +66,7 @@ build() { dry() { # 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) 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" }