From 6a5b4c73b0655c38f0b6abc6550b2b3cdffc121b Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 27 Jan 2023 13:48:18 +0100 Subject: tv modules: import all Nix dir entries --- tv/3modules/default.nix | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) (limited to 'tv') 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 ./.))); } -- cgit v1.2.3