dont pass nixpkgs to ./hosts

This commit is contained in:
Sean Buckley 2022-06-16 23:30:12 -04:00
parent 6f3ab9c4bf
commit 47fd774f1a
2 changed files with 5 additions and 4 deletions

View file

@ -45,8 +45,9 @@
nixosModules = mods // { default.imports = builtins.attrValues mods; }; nixosModules = mods // { default.imports = builtins.attrValues mods; };
nixosConfigurations = nixosConfigurations = builtins.mapAttrs
import ./hosts nixpkgs hardware self.nixosModules.default; (_: nixpkgs.lib.nixosSystem)
(import ./hosts hardware self.nixosModules.default);
apps = forAllSystems (system: apps = forAllSystems (system:
import lib/apps.nix nixpkgs.legacyPackages.${system}); import lib/apps.nix nixpkgs.legacyPackages.${system});

View file

@ -1,9 +1,9 @@
nixpkgs: hardware: nixosModule: hardware: nixosModule:
with hardware; with hardware;
builtins.mapAttrs builtins.mapAttrs
(name: { system, mods }: nixpkgs.lib.nixosSystem { (name: { system, mods }: {
inherit system; inherit system;
modules = mods ++ [ modules = mods ++ [
nixosModule nixosModule