From cbfaf9b9d90b6f56498061d525565863d0948c23 Mon Sep 17 00:00:00 2001 From: Jeeves Date: Sat, 30 Nov 2024 07:11:53 -0700 Subject: [PATCH] move nixpkgs.overlay to nixos module --- flake.nix | 6 ------ nixos/default.nix | 7 +++++++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/flake.nix b/flake.nix index 70c257b..90656dc 100644 --- a/flake.nix +++ b/flake.nix @@ -13,12 +13,6 @@ "aeolia" = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = [ - ({ pkgs, ... }: { nixpkgs.overlays = [ - (final: super: { - makeModulesClosure = x: - super.makeModulesClosure (x // { allowMissing = true; }); - }) - ]; }) ./nixos ./installer.nix ]; diff --git a/nixos/default.nix b/nixos/default.nix index 1c32c4a..200d9f1 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -58,6 +58,13 @@ }; config = let cfg = config.ps4; in lib.mkIf cfg.enable { + nixpkgs.overlays = [ + (final: super: { + makeModulesClosure = x: + super.makeModulesClosure (x // { allowMissing = true; }); + }) + ]; + # TODO write definitions for the other southbridges boot.kernelPackages = pkgs.recurseIntoAttrs (pkgs.linuxPackagesFor (pkgs.callPackage ../kernel/kernel-aeolia-5.3.nix {}));