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:
parent
08290e5052
commit
30cfdaf860
7 changed files with 26 additions and 43 deletions
|
@ -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)
|
Loading…
Add table
Add a link
Reference in a new issue