From 9ae975d19141c5220d207cdca27e2af5fcdef9ed Mon Sep 17 00:00:00 2001 From: Minijackson Date: Thu, 30 Nov 2023 14:48:40 +0100 Subject: [PATCH] flake: apply nixpkgs overlays before other overlays --- flake.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 7b603475..fbcff4f2 100644 --- a/flake.nix +++ b/flake.nix @@ -87,9 +87,11 @@ _module.args.epnix = self; }; - nixosModules.nixos = { + nixosModules.nixos = {lib, ...}: { imports = import ./nixos/module-list.nix; - nixpkgs.overlays = [self.overlays.default]; + # use mkBefore so that end users can be sure + # that their overlay can override EPNix packages + nixpkgs.overlays = lib.mkBefore [self.overlays.default]; _module.args.epnixLib = self.lib; };