1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-10 23:00:39 +02:00

chore: minor cleanup of overlay.nix

This commit is contained in:
oddlama 2023-02-04 02:37:53 +01:00
parent 2701efddda
commit d6b091c26d
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
2 changed files with 8 additions and 13 deletions

View file

@ -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]);
}

View file

@ -1,8 +1,7 @@
final: prev:
with prev.lib;
with builtins;
composeManyExtensions
(
composeManyExtensions (
map
(f: import (./. + "/${f}"))
(remove "default.nix" (attrNames (readDir ./.)))