From 2742cf5f2cb278540740204205dbcc49bdc91b55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 13 Jul 2022 09:34:06 +0200 Subject: Add build-turris.sh script --- build-turris.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 build-turris.sh (limited to 'build-turris.sh') diff --git a/build-turris.sh b/build-turris.sh new file mode 100755 index 0000000..bb9ebe6 --- /dev/null +++ b/build-turris.sh @@ -0,0 +1,18 @@ +#!/bin/sh +omnia_hash="17b62c338f2a0862a58bb6951556beecd98ccda9" +moxes=( "spt-mox2" ) +omnias=( "spt-omnia" ) + +cd "${0%/*}" || exit +for system in "${moxes[@]}"; do + echo "Building $system" + nix build -o "result-${system}" ".#nixosConfigurations.${system}.config.system.build.toplevel" +done +for system in "${omnias[@]}"; do + echo "Building $system" + nix build \ + --override-input nixpkgs "github:NixOS/nixpkgs/${omnia_hash}" \ + --override-input nixturris/nixpkgs "github:NixOS/nixpkgs/${omnia_hash}" \ + -o "result-${system}" \ + ".#nixosConfigurations.${system}.config.system.build.toplevel" +done -- cgit v1.2.3