1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

refactor: remove meta.nix in favor of direct declaration in flake.nix

This commit is contained in:
oddlama 2023-04-30 14:06:25 +02:00
parent 08290e5052
commit 30cfdaf860
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
7 changed files with 26 additions and 43 deletions

View file

@ -1,10 +0,0 @@
{nixpkgs, ...}: let
hostDefaults = {
physicalConnections = {};
microVmHost = false;
};
in
nixpkgs.lib.concatMapAttrs (nodeName: fileType:
if fileType == "directory" && nodeName != "common"
then {${nodeName} = hostDefaults // import (../hosts + "/${nodeName}/meta.nix");}
else {}) (builtins.readDir ../hosts)