diff --git a/flake.nix b/flake.nix index fdb9783..0b84f13 100644 --- a/flake.nix +++ b/flake.nix @@ -81,7 +81,7 @@ ) // { nixosConfigurations = builtins.mapAttrs ( - hostname: { system, config }: nixpkgs.lib.nixosSystem { + hostname: { system, config }@machine: nixpkgs.lib.nixosSystem { inherit system; modules = [ @@ -90,6 +90,11 @@ config._module.args = { inherit hostname; + machineInfo = machine // { + name = hostname; + config = (pkgs.callPackage config { }); + }; + machineConfig = (pkgs.callPackage config { }) // { inherit hostname; }; @@ -127,6 +132,11 @@ ( { pkgs, ... }: { config._module.args = { + machineInfo = machine // { + name = hostname; + config = machineConfig; + }; + inherit machineConfig hostname