pipes
This commit is contained in:
parent
e760320eaf
commit
451c79270d
2 changed files with 12 additions and 12 deletions
|
@ -1,12 +1,11 @@
|
||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
{
|
{
|
||||||
imports = builtins.map (n: ./${n}) (
|
imports = lib.pipe ./. [
|
||||||
builtins.attrNames (
|
builtins.readDir
|
||||||
lib.filterAttrs (k: v: v == "regular" && lib.hasSuffix ".nix" k && k != "default.nix") (
|
(lib.filterAttrs (k: v: v == "regular" && lib.hasSuffix ".nix" k && k != "default.nix"))
|
||||||
builtins.readDir ./.
|
builtins.attrNames
|
||||||
)
|
(builtins.map (n: ./${n}))
|
||||||
)
|
];
|
||||||
);
|
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
{
|
{
|
||||||
imports = builtins.map (n: ./common/${n}) (
|
imports = lib.pipe ./common [
|
||||||
builtins.attrNames (
|
builtins.readDir
|
||||||
lib.filterAttrs (k: v: v == "regular" && lib.hasSuffix ".nix" k) (builtins.readDir ./common)
|
(lib.filterAttrs (k: v: v == "regular" && lib.hasSuffix ".nix" k))
|
||||||
)
|
builtins.attrNames
|
||||||
);
|
(builtins.map (n: ./common/${n}))
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue