mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
feat: prepare structure for microvm.nix
This commit is contained in:
parent
aa2a660c61
commit
66bea99eb6
13 changed files with 124 additions and 82 deletions
|
@ -1,5 +1,10 @@
|
|||
{nixpkgs, ...}:
|
||||
nixpkgs.lib.concatMapAttrs (nodeName: fileType:
|
||||
{nixpkgs, ...}: let
|
||||
hostDefaults = {
|
||||
physicalConnections = {};
|
||||
microVmHost = false;
|
||||
};
|
||||
in
|
||||
nixpkgs.lib.concatMapAttrs (nodeName: fileType:
|
||||
if fileType == "directory" && nodeName != "common"
|
||||
then {${nodeName} = import (../hosts + "/${nodeName}/meta.nix");}
|
||||
then {${nodeName} = hostDefaults // import (../hosts + "/${nodeName}/meta.nix");}
|
||||
else {}) (builtins.readDir ../hosts)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue