From 6210daff13e0466c7fa5b5ae35dfc0749f50432c Mon Sep 17 00:00:00 2001 From: Pacman99 Date: Tue, 16 Mar 2021 14:22:38 -0700 Subject: [PATCH] add hosts module arg to easily access other host's config --- hosts/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hosts/default.nix b/hosts/default.nix index ef2f559e..1f4f6d47 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -75,6 +75,8 @@ let _module.args = { inherit self; + hosts = builtins.mapAttrs (_: host: host.config) + (removeAttrs hosts [ hostName ]); }; }; in