pkgs moved up a level, so it becomes specialarg
This commit is contained in:
15
flake.nix
15
flake.nix
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user