fix: add nixos module imports

This commit is contained in:
514fpv 2024-02-21 21:53:08 +08:00
parent f814654e10
commit f2f2b34e80
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw

View file

@ -10,4 +10,10 @@
else { });
}) (builtins.attrNames (builtins.readDir ./.)))
) ];
imports = lib.pipe ./. [
builtins.readDir
(lib.filterAttrs (n: ty: ty == "directory" && builtins.pathExists ./${n}/nixos.nix))
(lib.mapAttrsToList (n: _: ./${n}/nixos.nix))
];
}