Compare commits

...

2 commits

Author SHA1 Message Date
xqtc161 fc2263390a Remove arch chcek from beleth recipe in justfile 2024-07-02 08:39:02 +02:00
xqtc161 0a37f4e4d2 Add x86 emulation for alastor 2024-07-02 08:28:11 +02:00
2 changed files with 10 additions and 8 deletions

View file

@ -29,6 +29,8 @@
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = false;
boot.binfmt.emulatedSystems = ["x86_64-linux"];
virtualisation.docker.enable = true;
virtualisation.docker.autoPrune.enable = true;
virtualisation.docker.autoPrune.dates = "daily";

View file

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