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,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;