summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2023-10-01 18:56:59 +0200
committerLinnnus <[email protected]>2023-10-01 18:56:59 +0200
commit280aa48893458f0ae980c87fed5e733373ccec9d (patch)
tree0f89bf52e846124db5c3b72430a5c2b98e49c312 /flake.nix
parent7451c6a93b42ad1ae4a1a95664c2d8a6bdb11f72 (diff)
Export pkgs and overlays
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix17
1 files changed, 17 insertions, 0 deletions
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;
};
}