flake: introduce 'pkgs' overlay
Also make it the prime overlay instead of the extended 'lib'. The reason for `pkgs` not being structured as an overlay, but simply taking `pkgs` as an argument is to allow it to be used as a NUR package set, if I wanted to.
This commit is contained in:
parent
15f0f95538
commit
edb9c46106
|
@ -24,7 +24,11 @@
|
||||||
then self.rev
|
then self.rev
|
||||||
else throw "Refusing to build from a dirty Git tree!";
|
else throw "Refusing to build from a dirty Git tree!";
|
||||||
})
|
})
|
||||||
{ nixpkgs.overlays = [ nur.overlay self.overlay ]; }
|
{
|
||||||
|
nixpkgs.overlays = (lib.attrValues self.overlays) ++ [
|
||||||
|
nur.overlay
|
||||||
|
];
|
||||||
|
}
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
home-manager.users.ambroisie = import ./home;
|
home-manager.users.ambroisie = import ./home;
|
||||||
|
@ -61,10 +65,11 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}) // {
|
}) // {
|
||||||
overlay = self.overlays.lib;
|
overlay = self.overlays.pkgs;
|
||||||
|
|
||||||
overlays = {
|
overlays = {
|
||||||
lib = final: prev: { inherit lib; };
|
lib = final: prev: { inherit lib; };
|
||||||
|
pkgs = final: prev: { ambroisie = import ./pkgs { pkgs = prev; }; };
|
||||||
};
|
};
|
||||||
|
|
||||||
nixosConfigurations = lib.mapAttrs buildHost {
|
nixosConfigurations = lib.mapAttrs buildHost {
|
||||||
|
|
2
pkgs/default.nix
Normal file
2
pkgs/default.nix
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
{ pkgs }:
|
||||||
|
{ }
|
Loading…
Reference in a new issue