forked from mirrors_public/oddlama_nix-config
chore: minor cleanup of overlay.nix
This commit is contained in:
parent
2701efddda
commit
d6b091c26d
2 changed files with 8 additions and 13 deletions
|
@ -2,20 +2,16 @@
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
ragenix,
|
ragenix,
|
||||||
...
|
...
|
||||||
}: let
|
}:
|
||||||
inherit (nixpkgs) lib;
|
with nixpkgs.lib; let
|
||||||
localOverlays =
|
localOverlays =
|
||||||
lib.mapAttrs'
|
mapAttrs'
|
||||||
(f: _:
|
(f: _: nameValuePair (removeSuffix ".nix" f) (import (./overlays + "/${f}")))
|
||||||
lib.nameValuePair
|
|
||||||
(lib.removeSuffix ".nix" f)
|
|
||||||
(import (./overlays + "/${f}")))
|
|
||||||
(builtins.readDir ./overlays);
|
(builtins.readDir ./overlays);
|
||||||
in
|
in
|
||||||
localOverlays
|
localOverlays
|
||||||
// {
|
// {
|
||||||
default = lib.composeManyExtensions ((lib.attrValues localOverlays)
|
default =
|
||||||
++ [
|
composeManyExtensions ((attrValues localOverlays)
|
||||||
ragenix.overlays.default
|
++ [ragenix.overlays.default]);
|
||||||
]);
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
final: prev:
|
final: prev:
|
||||||
with prev.lib;
|
with prev.lib;
|
||||||
with builtins;
|
with builtins;
|
||||||
composeManyExtensions
|
composeManyExtensions (
|
||||||
(
|
|
||||||
map
|
map
|
||||||
(f: import (./. + "/${f}"))
|
(f: import (./. + "/${f}"))
|
||||||
(remove "default.nix" (attrNames (readDir ./.)))
|
(remove "default.nix" (attrNames (readDir ./.)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue