Skip to content

Commit

Permalink
Merge pull request #42 from epics-extensions/nixos-overlays-before
Browse files Browse the repository at this point in the history
flake: apply nixpkgs overlays before other overlays
  • Loading branch information
minijackson authored Dec 1, 2023
2 parents a780eb2 + 9ae975d commit 1bcb315
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down

0 comments on commit 1bcb315

Please sign in to comment.