home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 096a4f7f205c056d6f8361a329de27905c6b6e0a
parent 5ea8f3d3a4482508f2b7dac68d5801d21df783fd
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Wed,  2 Dec 2020 17:56:38 +0100

flake.nix: fix overlays setup

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mflake.nix | 10++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/flake.nix b/flake.nix @@ -84,7 +84,13 @@ # `internal` isn't a known output attribute for flakes. It is used here to contain # anything that isn't meant to be re-usable. # Taken from davidtwco/veritas repository :) - internal = { }; + internal = { + # Overlays consumed by the home-manager/NixOS configuration. + overlays = forEachSystem (system: [ + (self.overlay."${system}") + (_: _: import inputs.gitignore-nix { lib = inputs.nixpkgs.lib; }) + ]); + }; # Attribute set of hostnames to be evaluated as NixOS configurations. Consumed by # `nixos-rebuild` on those hosts. @@ -103,7 +109,7 @@ # so they in the flake output `internal.overlays`. # # These are meant to be consumed by other projects that might import this flake. - overlay = { }; + overlay = forEachSystem (system: _: _: self.packages."${system}"); # Expose the packages defined in this flake, built for any supported systems. These are # meant to be consumed by other projects that might import this flake.