nixos-config/modules/home/default.nix

12 lines
251 B
Nix
Raw Normal View History

2025-03-02 16:50:12 +03:00
{ lib, ... }:
let
inherit (lib) filterAttrs;
inherit (builtins) attrNames readDir;
moduleDirs =
dir:
map (name: dir + "/${name}") (attrNames (filterAttrs (_: type: type == "directory") (readDir dir)));
in
{
2025-03-02 16:50:12 +03:00
imports = moduleDirs ./.;
}