mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
overlays: init by-name structure
This commit is contained in:
parent
0fcbb8064d
commit
1a9dceb981
1 changed files with 12 additions and 0 deletions
12
nix/overlays/by-name.nix
Normal file
12
nix/overlays/by-name.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
let
|
||||||
|
sources = import ../sources.nix;
|
||||||
|
lib = import (sources.nixpkgs + "/lib");
|
||||||
|
in
|
||||||
|
lib.mapAttrs
|
||||||
|
(
|
||||||
|
name: _:
|
||||||
|
import (./by-name + "/${name}/overlay.nix") {inherit sources;}
|
||||||
|
)
|
||||||
|
(
|
||||||
|
lib.filterAttrs (_: type: type == "directory") (builtins.readDir ./by-name)
|
||||||
|
)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue