mirror of
https://git.gay/xqtc/nixos-config
synced 2024-11-22 09:30:32 +01:00
Remove arch chcek from beleth recipe in justfile
This commit is contained in:
parent
0a37f4e4d2
commit
fc2263390a
16
justfile
16
justfile
|
@ -17,14 +17,14 @@ rebuild:
|
|||
beleth:
|
||||
#!/usr/bin/env bash
|
||||
set -euxo pipefail
|
||||
arch=$(nix-instantiate --eval -E 'builtins.currentSystem')
|
||||
arch_sanitized=$(echo $arch | sed 's/^"//;s/"$//')
|
||||
if [ $arch_sanitized == "x86_64-linux" ]; then
|
||||
nixos-rebuild switch --flake '.#beleth' --build-host {{beleth-host}} --target-host {{beleth-host}};
|
||||
ssh {{beleth-user-host}} "cd; cd nixos-config; git pull; cd; sh build_website.sh";
|
||||
exit
|
||||
fi
|
||||
@echo "Host arch needs to be 'x86_64-linux'! Aborting...";
|
||||
# arch=$(nix-instantiate --eval -E 'builtins.currentSystem')
|
||||
# arch_sanitized=$(echo $arch | sed 's/^"//;s/"$//')
|
||||
# if [ $arch_sanitized == "x86_64-linux" ]; then
|
||||
nixos-rebuild switch --flake '.#beleth' --build-host {{beleth-host}} --target-host {{beleth-host}};
|
||||
ssh {{beleth-user-host}} "cd; cd nixos-config; git pull; cd; sh build_website.sh";
|
||||
exit
|
||||
# fi
|
||||
# @echo "Host arch needs to be 'x86_64-linux'! Aborting...";
|
||||
|
||||
update:
|
||||
nix flake update
|
||||
|
|
Loading…
Reference in a new issue