blob: d27b11b41dd327394c35f8fcf2287aed2a001e29 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
<!--
nixos-config - My current NixOS configuration
Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de>
SPDX-License-Identifier: GPL-3.0-or-later
This file is part of my nixos-config.
You should have received a copy of the License along with this program.
If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
-->
# How to set-up “corporate” Wi-Fi with NetworkManager (`nmcli`)
```bash
nmcli connection add \
type wifi \
connection.id "$name_you_want_to_use" \
wifi.ssid "$actual_ssid" \
wifi.mode infrastructure \
wifi-sec.key-mgmt wpa-eap \
802-1x.eap peap \
802-1x.identity "$your_login_name" \
802-1x.phase2-auth mschapv2
# Ask, so that `nmcli` can determine your password.
nmcli connection up "$name_you_want_to_use" --ask
```
## This will result in a configuration file, similar to this one:
```ini
[connection]
id="$name_you_want_to_use"
uuid=aaaaaaaa-aaaa-aaaa-aaaa-deadbeef1245
type=wifi
interface-name=wlo1
[wifi]
mode=infrastructure
ssid="$actual_ssid"
[wifi-security]
key-mgmt=wpa-eap
[802-1x]
ca-cert=/home/user_name/.local/share/nm/ca-cert.cer
domain-suffix-match=dnsx.topackt.net
eap=peap;
identity="$identity"
phase2-auth=mschapv2
[ipv4]
method=auto
[ipv6]
addr-gen-mode=stable-privacy
method=auto
[proxy]
```
|