mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
nix: refactored flakeModules
This commit is contained in:
parent
18f7c70bc9
commit
11ec0c8833
3 changed files with 72 additions and 65 deletions
|
|
@ -1 +1,13 @@
|
|||
{ imports = [ ./combinators ]; }
|
||||
{ lib, ... }:
|
||||
|
||||
let
|
||||
modules = lib.pipe (builtins.readDir ./.) [
|
||||
(lib.filterAttrs (moduleName: _: moduleName != "default.nix"))
|
||||
(lib.mapAttrs (moduleName: _: ./${moduleName}))
|
||||
];
|
||||
in
|
||||
|
||||
{
|
||||
imports = lib.attrValues modules;
|
||||
flake.flakeModules = modules;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue