Flake : Reformat common ls.
This commit is contained in:
parent
8c31e4b05f
commit
f04eb7b0ae
|
@ -109,7 +109,11 @@
|
||||||
|
|
||||||
# Common modules used across all hosts.
|
# Common modules used across all hosts.
|
||||||
nixosModules.common = let
|
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 {
|
in {
|
||||||
imports = (ls ./module/common) ++ [
|
imports = (ls ./module/common) ++ [
|
||||||
./user/Root.nix
|
./user/Root.nix
|
||||||
|
|
Loading…
Reference in a new issue