automatically import ${namespace}.${hostname} as module

This commit is contained in:
Jonas Rabenstein 2025-11-26 02:40:42 +01:00
commit 1cafebb163

View file

@ -24,6 +24,7 @@ let
base: builtins.attrValues (flake.lib.scan { base = "${base}/host/${hostname}"; }) base: builtins.attrValues (flake.lib.scan { base = "${base}/host/${hostname}"; })
) flake.lib.schema.base ) flake.lib.schema.base
) )
++ map (input: input.${namespace}.${name} or { }) inputs
++ [ { config.networking.hostName = hostname; } ] ++ [ { config.networking.hostName = hostname; } ]
++ [ nixosModules.default ] ++ [ nixosModules.default ]
++ inputs.${nixpkgs}.lib.optional (inputs ? home-manager) { ++ inputs.${nixpkgs}.lib.optional (inputs ? home-manager) {