summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2023-01-27 13:48:18 +0100
committertv <tv@krebsco.de>2023-01-27 13:51:06 +0100
commit6a5b4c73b0655c38f0b6abc6550b2b3cdffc121b (patch)
treef1564641602d3f8e9647c3506c116835cdddeaa2
parent09c1d8ce2eef60835b48b6f9826467860edfad86 (diff)
tv modules: import all Nix dir entries
-rw-r--r--tv/3modules/default.nix23
1 files changed, 6 insertions, 17 deletions
diff --git a/tv/3modules/default.nix b/tv/3modules/default.nix
index 8c1066b71..1a0971ec6 100644
--- a/tv/3modules/default.nix
+++ b/tv/3modules/default.nix
@@ -1,19 +1,8 @@
+with import ./lib;
{
- imports = [
- ./charybdis
- ./dnsmasq.nix
- ./ejabberd
- ./focus.nix
- ./hosts.nix
- ./hw.nix
- ./im.nix
- ./iptables.nix
- ./lidControl.nix
- ./org.freedesktop.machine1.host-shell.nix
- ./systemd.nix
- ./slock.nix
- ./x0vncserver.nix
- ./Xresources.nix
- ./wwan.nix
- ];
+ imports =
+ map
+ (name: ./. + "/${name}")
+ (attrNames
+ (filterAttrs isNixDirEntry (readDir ./.)));
}