refactor(dotfiles): centralize Nix file names

This commit was merged in pull request #107.
This commit is contained in:
2026-09-27 09:39:10 -04:00
parent 3b2d16743e
commit 43b3ff4b09
4 changed files with 15 additions and 5 deletions

View File

@@ -6,13 +6,11 @@
}:
let
definitions = lib.listToAttrs (
map (path: lib.nameValuePair (registryName (builtins.baseNameOf path)) (mkRegistry path)) (
map (path: lib.nameValuePair (util.removeNixSuffix path) (mkRegistry path)) (
util.collectNixFiles root
)
);
registryName = fileName: lib.removeSuffix ".nix" fileName;
mkRegistry =
path:
let