This is the result of ~100 commits to my NixOS config. Since I haven't always used `agenix-rekey`, this is another initial commit so that none of the secrets in my git history are leaked
6 lines
288 B
Nix
6 lines
288 B
Nix
{lib, ...}:
|
|
with builtins; let
|
|
# Determines whether the given file name ends with ".nix"
|
|
endsWithNix = fileName: substring (lib.trivial.max 0 (stringLength fileName - 4)) 4 fileName == ".nix";
|
|
in
|
|
map (name: ./config + "/${name}") (filter endsWithNix (attrNames (readDir ./config)))
|