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; };
nixosConfigurations =
import ./hosts nixpkgs hardware self.nixosModules.default;
nixosConfigurations = builtins.mapAttrs
(_: nixpkgs.lib.nixosSystem)
(import ./hosts hardware self.nixosModules.default);
apps = forAllSystems (system:
import lib/apps.nix nixpkgs.legacyPackages.${system});

View file

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