1
1
Fork 1
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:
oddlama 2023-03-30 01:29:05 +02:00
parent aa2a660c61
commit 66bea99eb6
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
13 changed files with 124 additions and 82 deletions

View file

@ -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)