tadpole: Add modules directory

This commit is contained in:
Alexander Heldt
2024-07-20 17:59:12 +02:00
parent bebda0f859
commit b1d64e8680
2 changed files with 13 additions and 0 deletions

View File

@@ -5,6 +5,7 @@
[ [
../../config-manager/default.nix ../../config-manager/default.nix
./hardware-configuration.nix ./hardware-configuration.nix
./modules
]; ];
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];

View File

@@ -0,0 +1,12 @@
{ lib, ... }:
let
toModulePath = dir: _: ./. + "/${dir}";
filterDirs = dirs: lib.attrsets.filterAttrs (_: type: type == "directory") dirs;
in
{
imports = lib.mapAttrsToList toModulePath (filterDirs (builtins.readDir ./.));
config = {
mod = {};
};
}