Rework build-flakes script
Some checks failed
Run nix flake check / flake-check (push) Has been cancelled
Some checks failed
Run nix flake check / flake-check (push) Has been cancelled
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user