refactor(dotfiles): inline registry name derivation
This commit is contained in:
@@ -6,11 +6,11 @@
|
|||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
definitions = lib.listToAttrs (
|
definitions = lib.listToAttrs (
|
||||||
map (path: lib.nameValuePair (registryName path) (mkRegistry path)) (util.collectNixFiles root)
|
map (path: lib.nameValuePair (util.removeNixSuffix path) (mkRegistry path)) (
|
||||||
|
util.collectNixFiles root
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
registryName = util.removeNixSuffix;
|
|
||||||
|
|
||||||
mkRegistry =
|
mkRegistry =
|
||||||
path:
|
path:
|
||||||
let
|
let
|
||||||
|
|||||||
Reference in New Issue
Block a user