From 377db246dfe32d58cb84b6aac74d1a98a5ae66ce Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 27 Jun 2022 17:41:52 -0700 Subject: 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 Tested-by: CI --- flake.nix | 10 ++++++++-- 1 file 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}"; -- cgit 1.4.1