-
Notifications
You must be signed in to change notification settings - Fork 0
/
release-arm.nix
42 lines (41 loc) · 1.27 KB
/
release-arm.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
with import <nixpkgs/lib>;
let
pkgs = import <nixpkgs> {};
configFor = modules: (import <nixpkgs/nixos/lib/eval-config.nix> {
system = "armv6l-linux";
modules = modules;
}).config.system.build;
configForMachine = machineName:
configFor [(./machines + "/${machineName}.nix")];
targetForMachine = machineName: (configForMachine machineName).toplevel;
sdForMachine = machineName: (configForMachine machineName).sdImage;
allTests = (import <nixpkgs/nixos/tests/all-tests.nix> rec {
system = "x86_64-linux";
pkgs = import <nixpkgs> { inherit system; overlays = (import ./overlays); };
callTest = t: hydraJob t.test;
});
in rec
{
machines = genAttrs [
"librarian"
] targetForMachine;
sdImages = genAttrs [
"librarian"
] sdForMachine;
nixpkgs = pkgs.releaseTools.channel {
constituents = [ machines.cic machines.hiro ];
name = "nixpkgs";
src = <nixpkgs>;
};
nixos-config = pkgs.releaseTools.channel {
constituents = [machines.cic machines.hiro ];
name = "nixos-config";
src = ./.;
};
tests = {
inherit (allTests) firefox grafana i3wm matrix-synapse
prometheus;
inherit (allTests.postgresql) postgresql_9_6;
# hydra = allTests.hydra.nixUnstable;
};
}