From 11f9963090596887542e73184a9621cb5e3d8f52 Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Mon, 19 Aug 2024 05:55:29 -0700 Subject: [PATCH] builders: makePkgs --- lib/builders.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/builders.nix b/lib/builders.nix index ac1ea0f..8c890fd 100644 --- a/lib/builders.nix +++ b/lib/builders.nix @@ -3,6 +3,13 @@ let lib = nixpkgs.lib.extend (import ../lib); + makePkgs = system: (import nixpkgs { + inherit system; + + config.allowUnfree = true; + overlays = [ self.overlays.default ]; + }); + inherit (inputs.home-manager.lib) homeManagerConfiguration; inherit (nixpkgs.lib) nixosSystem; inherit (lib.strings) optionalString; @@ -14,8 +21,9 @@ rec { nameValuePair hostname (nixosSystem { - inherit system; + pkgs = makePkgs system; specialArgs = { inherit inputs lib self; }; + modules = [ ../hosts/${hostname}/hardware-configuration.nix ../hosts/${hostname}/configuration.nix @@ -39,7 +47,7 @@ rec { nameValuePair "${user}${hostStr}" (homeManagerConfiguration { - pkgs = nixpkgs.legacyPackages.${system}; + pkgs = makePkgs system; extraSpecialArgs = { inherit inputs self; lib = lib.extend (_: _: inputs.home-manager.lib);