aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild-turris.sh18
-rw-r--r--flake.lock6
-rw-r--r--nixos/modules/develop.nix1
3 files changed, 22 insertions, 3 deletions
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
diff --git a/flake.lock b/flake.lock
index f4cdaa4..0a39d06 100644
--- a/flake.lock
+++ b/flake.lock
@@ -44,11 +44,11 @@
},
"nixpkgs": {
"locked": {
- "lastModified": 1657473656,
- "narHash": "sha256-F4igse3HP5pa1ZunViSbyrisUio0ejlpd0LDzInhlTY=",
+ "lastModified": 1657649905,
+ "narHash": "sha256-gth8ki7Sme/DjUc/hXBHpn+cvQSx9oTLCXUjQbbrn3M=",
"owner": "NixOS",
"repo": "nixpkgs",
- "rev": "3137fb373e36e39f605d44f97cb0f7807deefd1c",
+ "rev": "09066922296d9ef06bfadb937b2560524dd10785",
"type": "github"
},
"original": {
diff --git a/nixos/modules/develop.nix b/nixos/modules/develop.nix
index a825771..8d873a3 100644
--- a/nixos/modules/develop.nix
+++ b/nixos/modules/develop.nix
@@ -23,6 +23,7 @@ in {
cloc
openssl
sterm
+ parted
# Nix
nix-prefetch-git nix-prefetch-github nix-prefetch-scripts