1
0
mirror of https://github.com/nmasur/dotfiles synced 2025-03-16 00:27:05 +00:00

17 lines
356 B
Nix
Raw Normal View History

2025-03-07 18:19:35 -05:00
# Return a list of all overlays
inputs:
let
lib = inputs.nixpkgs.lib;
in
lib.pipe (lib.filesystem.listFilesRecursive ./.) [
# Get only files ending in .nix
(builtins.filter (name: lib.hasSuffix ".nix" name))
# Remove this file
(builtins.filter (name: name != ./default.nix))
# Import each overlay file
(map (file: (import file) inputs))
]