1
1
Fork 1
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:
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, 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]);
]);
} }

View file

@ -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 ./.)))