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
1 changed files with 3 additions and 3 deletions

6
styx
View File

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