From e32b93296994471f2c34e2f32ea762030a4c8839 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Tue, 8 Jul 2025 22:47:52 +0200 Subject: [PATCH] Lib/NixOS: Pass publicKeys attrset into config modules --- lib/nixos.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/nixos.nix b/lib/nixos.nix index 7967a132..7a27d9a8 100644 --- a/lib/nixos.nix +++ b/lib/nixos.nix @@ -9,6 +9,7 @@ mylib, hostname, username, + publicKeys, extraModules ? [], headless ? false, }: @@ -16,7 +17,9 @@ inherit system; # Values in "specialArgs" are propagated to all system modules. - specialArgs = {inherit inputs hostname mylib system username headless;}; + specialArgs = { + inherit inputs system hostname mylib username publicKeys headless; + }; modules = builtins.concatLists [ [ @@ -36,7 +39,9 @@ { home-manager = { # Values in "extraSpecialArgs" are propagated to all HM modules. - extraSpecialArgs = {inherit inputs system hostname username mylib headless;}; + extraSpecialArgs = { + inherit inputs system hostname mylib username publicKeys headless; + }; # Use the "pkgs" from the system configuration. # This disables "nixpkgs.*" options in HM modules.