From 7339784e07217ed0232e08d1ea33b610c94657d8 Mon Sep 17 00:00:00 2001 From: uosis Date: Thu, 9 Jul 2020 17:47:16 -0600 Subject: [PATCH] nixos: pass system configuration to HM modules --- nixos/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/default.nix b/nixos/default.nix index 9aedf618..e5ca61c0 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -9,7 +9,10 @@ let extendedLib = import ../modules/lib/stdlib-extended.nix pkgs.lib; hmModule = types.submoduleWith { - specialArgs = { lib = extendedLib; }; + specialArgs = { + lib = extendedLib; + nixosConfig = config; + }; modules = [ ({ name, ... }: { imports = import ../modules/modules.nix {