mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
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,
|
||||
ragenix,
|
||||
...
|
||||
}: let
|
||||
inherit (nixpkgs) lib;
|
||||
}:
|
||||
with nixpkgs.lib; let
|
||||
localOverlays =
|
||||
lib.mapAttrs'
|
||||
(f: _:
|
||||
lib.nameValuePair
|
||||
(lib.removeSuffix ".nix" f)
|
||||
(import (./overlays + "/${f}")))
|
||||
mapAttrs'
|
||||
(f: _: nameValuePair (removeSuffix ".nix" f) (import (./overlays + "/${f}")))
|
||||
(builtins.readDir ./overlays);
|
||||
in
|
||||
localOverlays
|
||||
// {
|
||||
default = lib.composeManyExtensions ((lib.attrValues localOverlays)
|
||||
++ [
|
||||
ragenix.overlays.default
|
||||
]);
|
||||
default =
|
||||
composeManyExtensions ((attrValues localOverlays)
|
||||
++ [ragenix.overlays.default]);
|
||||
}
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
final: prev:
|
||||
with prev.lib;
|
||||
with builtins;
|
||||
composeManyExtensions
|
||||
(
|
||||
composeManyExtensions (
|
||||
map
|
||||
(f: import (./. + "/${f}"))
|
||||
(remove "default.nix" (attrNames (readDir ./.)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue