summaryrefslogtreecommitdiff
path: root/etc/NetworkManager
diff options
context:
space:
mode:
Diffstat (limited to 'etc/NetworkManager')
-rwxr-xr-xetc/NetworkManager/dispatcher.d/70-wifi-wired-exclusive16
-rw-r--r--etc/NetworkManager/system-connections/wired_internet.nmconnection16
-rw-r--r--etc/NetworkManager/system-connections/wired_two_computer.nmconnection19
3 files changed, 35 insertions, 16 deletions
diff --git a/etc/NetworkManager/dispatcher.d/70-wifi-wired-exclusive b/etc/NetworkManager/dispatcher.d/70-wifi-wired-exclusive
deleted file mode 100755
index fa8d28ed..00000000
--- a/etc/NetworkManager/dispatcher.d/70-wifi-wired-exclusive
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-
-# https://wiki.archlinux.org/title/NetworkManager#Use_dispatcher_to_automatically_toggle_wireless_depending_on_LAN_cable_being_plugged_in
-
-if [ "$1" = "enu1u2c2" ]; then
- case "$2" in
- up)
- nmcli radio wifi off
- ;;
- down)
- nmcli radio wifi on
- ;;
- esac
-elif [ "$(nmcli -g GENERAL.STATE device show enu1u2c2)" = "20 (unavailable)" ]; then
- nmcli radio wifi on
-fi
diff --git a/etc/NetworkManager/system-connections/wired_internet.nmconnection b/etc/NetworkManager/system-connections/wired_internet.nmconnection
new file mode 100644
index 00000000..cc16b1b1
--- /dev/null
+++ b/etc/NetworkManager/system-connections/wired_internet.nmconnection
@@ -0,0 +1,16 @@
+[connection]
+id=wired_internet
+uuid=14f15798-8e3a-4d32-a189-1bd5a55bb926
+type=ethernet
+autoconnect-priority=1
+
+[ethernet]
+
+[ipv4]
+method=auto
+
+[ipv6]
+addr-gen-mode=stable-privacy
+method=auto
+
+[proxy]
diff --git a/etc/NetworkManager/system-connections/wired_two_computer.nmconnection b/etc/NetworkManager/system-connections/wired_two_computer.nmconnection
new file mode 100644
index 00000000..0f5d5f6e
--- /dev/null
+++ b/etc/NetworkManager/system-connections/wired_two_computer.nmconnection
@@ -0,0 +1,19 @@
+[connection]
+id=wired_two_computer
+uuid=d802bd70-8e5a-4dbc-b0ee-7857d765180c
+type=ethernet
+autoconnect-priority=2
+
+[ethernet]
+
+[ipv4]
+address1=10.0.3.2/32
+method=manual
+route1=10.0.3.1/32
+
+[ipv6]
+address1=fdc9:281f:4d7:9eec::2/64
+method=manual
+route1=fdc9:281f:4d7:9eec::1/128
+
+[proxy]