summaryrefslogtreecommitdiffstats
path: root/tv/3modules
diff options
context:
space:
mode:
Diffstat (limited to 'tv/3modules')
-rw-r--r--tv/3modules/default.nix23
-rw-r--r--tv/3modules/wwan.nix1
2 files changed, 7 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 ./.)));
}
diff --git a/tv/3modules/wwan.nix b/tv/3modules/wwan.nix
index 03cd512e4..382f5a535 100644
--- a/tv/3modules/wwan.nix
+++ b/tv/3modules/wwan.nix
@@ -166,6 +166,7 @@ with import ./lib;
interface=$(get-interface)
+ ip addr flush "$interface"
ip link set dev "$interface" down
uqmi --stop-network 0xFFFFFFFF --autoconnect
uqmi --sync