From 24505abee132345ee5d4ff3bc3597bd053117295 Mon Sep 17 00:00:00 2001 From: Pacman99 Date: Sun, 14 Mar 2021 15:05:49 -0700 Subject: [PATCH] add hosts specialArg to allow for modules to reference other host's configuration --- hosts/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hosts/default.nix b/hosts/default.nix index 3ff999ccd..55486757b 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -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;