Rework build-flakes script
Some checks failed
Run nix flake check / flake-check (push) Has been cancelled

This commit is contained in:
2025-05-28 21:03:25 +02:00
parent 77d1782f36
commit dd255955ca
2 changed files with 49 additions and 15 deletions

View File

@@ -8,21 +8,7 @@ let
nixos-rebuild
jq
];
text = ''
cd /root/nixos-servers
git pull
echo "Starting nixos-servers builds"
for host in $(nix flake show --json| jq -r '.nixosConfigurations | keys[]'); do
echo "Building $host"
nixos-rebuild --verbose -L --flake ".#$host" build
done
echo "All nixos-servers builds complete"
echo "Building gunter"
cd /root/nixos
git pull
nixos-rebuild --verbose -L --flake ".#gunter" build
'';
text = builtins.readFile ./build-flakes.sh;
};
in
{