flake: apply overrides first

Fixes other overlays not applying when pulling package from master.
This commit is contained in:
Timothy DeHerrera 2021-01-24 11:05:37 -07:00
parent 7c0381f478
commit 82463ffdc9
No known key found for this signature in database
GPG key ID: 8985725DB5B0C122

View file

@ -60,11 +60,9 @@
pkgs = pkgs =
let let
override = import ./pkgs/override.nix; override = import ./pkgs/override.nix;
overlays = (attrValues self.overlays) overlays = [
++ externOverlays
++ [
self.overlay
(override unstable) (override unstable)
self.overlay
(final: prev: { (final: prev: {
lib = (prev.lib or { }) // { lib = (prev.lib or { }) // {
inherit (nixos.lib) nixosSystem; inherit (nixos.lib) nixosSystem;
@ -72,7 +70,9 @@
utils = flake-utils.lib; utils = flake-utils.lib;
}; };
}) })
]; ]
++ (attrValues self.overlays)
++ externOverlays;
in in
pkgImport nixos overlays system; pkgImport nixos overlays system;