pkgs moved up a level, so it becomes specialarg

This commit is contained in:
2024-11-13 22:38:13 -06:00
parent addb3d3284
commit 13ffe469a5

View File

@@ -39,17 +39,18 @@
}; };
makePkgsMain = makePkgsMain =
name: makePkgs (if name == "workstation" then inputs.nixpkgs else inputs.nixpkgs-small); name: makePkgs (if name == "workstation" then inputs.nixpkgs else inputs.nixpkgs-small);
createConfig = name: { createConfig =
inherit system; name:
specialArgs = {
inherit inputs outputs;
};
modules =
let let
pkgs = makePkgsMain name; pkgs = makePkgsMain name;
pkgs-chrome = makePkgs inputs.nixpkgs-chrome; pkgs-chrome = makePkgs inputs.nixpkgs-chrome;
in in
[ {
inherit system;
specialArgs = {
inherit inputs outputs pkgs;
};
modules = [
{ nixpkgs.overlays = [ (import ./overlay.nix { inherit pkgs pkgs-chrome; }) ]; } { nixpkgs.overlays = [ (import ./overlay.nix { inherit pkgs pkgs-chrome; }) ]; }
./hosts/${name}/configuration.nix ./hosts/${name}/configuration.nix
inputs.sops-nix.nixosModules.sops inputs.sops-nix.nixosModules.sops