refactor: made maps more readable

This commit is contained in:
Nick 2024-11-04 17:29:51 -06:00
parent 0f9bc0aa33
commit f87d465a2c
2 changed files with 5 additions and 15 deletions

View file

@ -7,9 +7,7 @@ let
emptySet // importedModules
) {} (map
(name: {
"${name}" =
import (modulesPath
+ "/${name}");
"${name}" = import (modulesPath + "/${name}");
})
[
"services"
@ -19,9 +17,7 @@ let
emptySet // importedModules
) {} (map
(name: {
"${name}" =
import (modulesPath
+ "/${name}.nix");
"${name}" = import (modulesPath + "/${name}.nix");
})
[
"accounts"