load overlays as modules

This commit is contained in:
Hendrik Sokolowski 2023-12-18 22:38:48 +01:00
parent b7ebed04d3
commit 0a51094a61

View file

@ -24,6 +24,7 @@ in
{ {
base.imports = [ base.imports = [
self.nixosModules.home-manager self.nixosModules.home-manager
self.nixosModules.overlays
inputs.agenix.nixosModules.default inputs.agenix.nixosModules.default
inputs.musnix.nixosModules.musnix inputs.musnix.nixosModules.musnix
inputs.nixmodules-hensoko.nixosModules.all inputs.nixmodules-hensoko.nixosModules.all
@ -36,8 +37,7 @@ in
master, master,
... ...
}: { }: {
nixpkgs.overlays = (import ../overlays) ++ nixpkgs.overlays = [
[
(prev: next: { (prev: next: {
nixd = inputs.unstable.legacyPackages.${prev.system}.nixd; nixd = inputs.unstable.legacyPackages.${prev.system}.nixd;
@ -51,10 +51,7 @@ in
home-assistant = inputs.unstable.legacyPackages.${prev.system}.home-assistant; home-assistant = inputs.unstable.legacyPackages.${prev.system}.home-assistant;
scan2paperless = inputs.scan2paperless.legacyPackages.${prev.system}.scan2paperless; scan2paperless = inputs.scan2paperless.legacyPackages.${prev.system}.scan2paperless;
paperless-ngx = inputs.master.legacyPackages.${prev.system}.paperless-ngx; paperless-ngx = inputs.unstable.legacyPackages.${prev.system}.paperless-ngx;
factorio-headless = inputs.master.legacyPackages.${prev.system}.factorio-headless;
element-desktop = inputs.master.legacyPackages.${prev.system}.element-desktop;
adlist = inputs.adblock-unbound.packages.${prev.system}; adlist = inputs.adblock-unbound.packages.${prev.system};
}) })