mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 06:33:56 -05:00
add docs on declrative wifi configurations
reorganize with TOC
parent
24e224b734
commit
eb064c1c47
2
Home.md
2
Home.md
|
@ -1 +1 @@
|
||||||
Welcome to the nixcfg wiki!
|
1. [[Networking]]
|
11
Networking.md
Normal file
11
Networking.md
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
## WiFi
|
||||||
|
|
||||||
|
WiFi networks can be configured declratively in `nixosModules/system/wifi.nix` using `networking.networkmanager.ensureProfiles.profiles`, provided by nixpkgs.
|
||||||
|
|
||||||
|
### Generating WiFi Profiles
|
||||||
|
|
||||||
|
[nm2nix](https://github.com/janik-haag/nm2nix) can generate nix-compatible code for all the WiFi networks in `/etc/NetworkManager/system-connections/` and `/run/NetworkManager/system-connections`.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo su -c "cd /etc/NetworkManager/system-connections && nix --extra-experimental-features 'nix-command flakes' run github:Janik-Haag/nm2nix | nix --extra-experimental-features 'nix-command flakes' run nixpkgs#nixfmt-rfc-style"
|
||||||
|
```
|
Loading…
Reference in a new issue