automatically import ${namespace}.${hostname} as module
This commit is contained in:
parent
d281a23a8a
commit
1cafebb163
1 changed files with 1 additions and 0 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue