diff --git a/hosts/default.nix b/hosts/default.nix index 3ff999ccd..0e88a5e8d 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -28,7 +28,7 @@ let modules; }; - global = { + global = { config, ... }: { home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; @@ -42,6 +42,11 @@ let nixpkgs = { inherit pkgs; }; + _module.args = { + hosts = builtins.mapAttrs (_: host: host.config) + (removeAttrs hosts [ config.networking.hostName ]); + }; + nix.registry = { devos.flake = self; nixos.flake = nixos;