Flake : Reformat common ls.

This commit is contained in:
Dmitry Voronin 2024-04-15 11:28:52 +03:00
parent 8c31e4b05f
commit f04eb7b0ae
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -109,7 +109,11 @@
# Common modules used across all hosts.
nixosModules.common = let
ls = path: map (f: "${path}/${f}") (builtins.filter (i: builtins.readFileType "${path}/${i}" == "regular") (builtins.attrNames (builtins.readDir path)));
ls = path: map (f: "${path}/${f}") (
builtins.filter (i: builtins.readFileType "${path}/${i}" == "regular") (
builtins.attrNames (builtins.readDir path)
)
);
in {
imports = (ls ./module/common) ++ [
./user/Root.nix