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/3modules') 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 From b9cdcc75a4f54356b35c7d7b3e25e8ec28de633c Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 29 Jan 2023 12:05:10 +0100 Subject: tv wwan: flush addrs on stop --- tv/3modules/wwan.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'tv/3modules') 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 -- cgit v1.2.3