about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-06-27 17:41:52 -0700
committerFranck Cuny <franck@fcuny.net>2022-06-28 06:43:21 -0700
commit377db246dfe32d58cb84b6aac74d1a98a5ae66ce (patch)
tree8d7db85f52231a94da4895f5771522472da710b9
parentref(flake): rename utils to futils (diff)
downloadworld-377db246dfe32d58cb84b6aac74d1a98a5ae66ce.tar.gz
ref(flake): be specific about which systems we support
For now the only system we support with nix is linux on x86.

Change-Id: Ia7d6173ab0be674e9be706f9c0eb02937aa87ac6
Reviewed-on: https://cl.fcuny.net/c/world/+/586
Reviewed-by: Franck Cuny <franck@fcuny.net>
Tested-by: CI
-rw-r--r--flake.nix10
1 files changed, 8 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index 709eb5e..c6b5373 100644
--- a/flake.nix
+++ b/flake.nix
@@ -28,7 +28,13 @@
 
   # Output config, or config for NixOS system
   outputs = { self, ... }@inputs:
-    let lib = import ./nix { inherit inputs; };
+    let
+      inherit (inputs.futils.lib) eachSystem system;
+      mySystems = [
+        system.x86_64-linux
+      ];
+      eachMySystem = eachSystem mySystems;
+      lib = import ./nix { inherit inputs; };
     in
     {
       nixosConfigurations = {
@@ -36,7 +42,7 @@
         aptos = lib.mkSystem { hostname = "aptos"; };
         tahoe = lib.mkSystem { hostname = "tahoe"; };
       };
-    } // inputs.futils.lib.eachDefaultSystem (system:
+    } // eachMySystem (system:
       let
         pkgs = import inputs.nixpkgs { inherit system; };
         home-manager = inputs.home-manager.defaultPackage."${system}";