From 280aa48893458f0ae980c87fed5e733373ccec9d Mon Sep 17 00:00:00 2001 From: Linnnus Date: Sun, 1 Oct 2023 18:56:59 +0200 Subject: Export pkgs and overlays --- flake.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 244abfe..244de62 100644 --- a/flake.nix +++ b/flake.nix @@ -25,8 +25,21 @@ let args = { flakeInputs = inputs; + flakeOutputs = self.outputs; metadata = nixpkgs.lib.importTOML ./metadata.toml; }; + + # This is a function that generates an attribute by calling a function + # you pass to it, with each system as an argument. `systems` lists all + # supported systems. + systems = [ + "aarch64-linux" + "i686-linux" + "x86_64-linux" + "aarch64-darwin" + "x86_64-darwin" + ]; + forAllSystems = nixpkgs.lib.genAttrs systems; in { darwinConfigurations = { @@ -61,5 +74,9 @@ ]; }; }; + + packages = forAllSystems (system: import ./pkgs nixpkgs.legacyPackages.${system}); + + overlays = import ./overlays; }; } -- cgit v1.2.3