mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
Recursively import modules
This commit is contained in:
parent
8b69c15eae
commit
265ea35fb2
3 changed files with 2 additions and 9 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{ self, ... }:
|
||||
{ self, lib, ... }:
|
||||
let
|
||||
modulesOf = dir: map (name: "${dir}/${name}") (builtins.attrNames (builtins.readDir dir));
|
||||
modulesOf = dir: builtins.filter (lib.hasSuffix ".nix") (lib.filesystem.listFilesRecursive dir);
|
||||
in
|
||||
{
|
||||
flake = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue