From 13ffe469a53e9e905efd5202efbb362a4c5e2af7 Mon Sep 17 00:00:00 2001 From: Danilo Reyes Date: Wed, 13 Nov 2024 22:38:13 -0600 Subject: [PATCH] pkgs moved up a level, so it becomes specialarg --- flake.nix | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/flake.nix b/flake.nix index 5ed0fac..03aadbc 100644 --- a/flake.nix +++ b/flake.nix @@ -39,23 +39,24 @@ }; makePkgsMain = name: makePkgs (if name == "workstation" then inputs.nixpkgs else inputs.nixpkgs-small); - createConfig = name: { - inherit system; - specialArgs = { - inherit inputs outputs; - }; - modules = - let - pkgs = makePkgsMain name; - pkgs-chrome = makePkgs inputs.nixpkgs-chrome; - in - [ + createConfig = + name: + let + pkgs = makePkgsMain name; + pkgs-chrome = makePkgs inputs.nixpkgs-chrome; + in + { + inherit system; + specialArgs = { + inherit inputs outputs pkgs; + }; + modules = [ { nixpkgs.overlays = [ (import ./overlay.nix { inherit pkgs pkgs-chrome; }) ]; } ./hosts/${name}/configuration.nix inputs.sops-nix.nixosModules.sops inputs.nixos-cosmic.nixosModules.default ]; - }; + }; in { inherit lib;