forked from pub-solar/os
d51cd34fb7
Subflakes should provide their wares as outputs, so wire up the pkgs flake to reflect that. Due to the unstable nature of flakes, updating the root flake doesn't currently update the subflake lock file. Therefore, add additional logic to flk update script in order to do this behind the scenes. Nix is now pulled in from the "nix" registry flake in order for users to take advantage of improvements to the UI since its last update in nixpkgs.
31 lines
734 B
Nix
31 lines
734 B
Nix
{ lib, dev, nixos, ... }:
|
|
|
|
{ self }:
|
|
let inherit (self) inputs;
|
|
in
|
|
(inputs.utils.lib.eachDefaultSystem
|
|
(system:
|
|
let
|
|
extern = import ../../extern { inherit inputs; };
|
|
overridePkgs = dev.os.pkgImport inputs.override [ ] system;
|
|
overridesOverlay = (import ../../overrides).packages;
|
|
|
|
overlays = [
|
|
(overridesOverlay overridePkgs)
|
|
self.overlay
|
|
(final: prev: {
|
|
lib = prev.lib.extend (lfinal: lprev: {
|
|
inherit dev;
|
|
inherit (lib) nixosSystem;
|
|
|
|
utils = inputs.utils.lib;
|
|
});
|
|
})
|
|
]
|
|
++ extern.overlays
|
|
++ (lib.attrValues self.overlays);
|
|
in
|
|
{ pkgs = dev.os.pkgImport nixos overlays system; }
|
|
)
|
|
).pkgs
|