summary refs log tree commit diff
path: root/lib/systems/supported.nix
diff options
context:
space:
mode:
Diffstat (limited to 'lib/systems/supported.nix')
-rw-r--r--lib/systems/supported.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/systems/supported.nix b/lib/systems/supported.nix
new file mode 100644
index 00000000000..60bf3074134
--- /dev/null
+++ b/lib/systems/supported.nix
@@ -0,0 +1,24 @@
+# Supported systems according to RFC0046's definition.
+#
+# https://github.com/NixOS/rfcs/blob/master/rfcs/0046-platform-support-tiers.md
+{ lib }:
+rec {
+  # List of systems that are built by Hydra.
+  hydra = tier1 ++ tier2 ++ tier3;
+
+  tier1 = [
+    "x86_64-linux"
+  ];
+
+  tier2 = [
+    "aarch64-linux"
+    "x86_64-darwin"
+  ];
+
+  tier3 = [
+    "armv6l-linux"
+    "armv7l-linux"
+    "i686-linux"
+    "mipsel-linux"
+  ];
+}