separate configs, LTE modem, wireguard, zsh
This commit is contained in:
parent
b73d0e9dbe
commit
8ce905a427
11 changed files with 360 additions and 184 deletions
37
modules/networking.nix
Normal file
37
modules/networking.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
# Networking and WWAN modem configuration
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
networking.hostName = "meow";
|
||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant
|
||||
|
||||
# Configure network proxy if necessary
|
||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
||||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
||||
|
||||
# Enable networking
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
# Fibocom EM120R-GL WWAN Modem Support
|
||||
# FCC unlock for Quectel EM120R-GL
|
||||
networking.modemmanager.fccUnlockScripts = [
|
||||
{
|
||||
id = "1eac:1001";
|
||||
path = "${pkgs.modemmanager}/share/ModemManager/fcc-unlock.available.d/1eac:1001";
|
||||
}
|
||||
];
|
||||
|
||||
# udev rules for WWAN devices
|
||||
services.udev.extraRules = ''
|
||||
KERNEL=="wwan*mbim*", MODE="0660", GROUP="dialout"
|
||||
KERNEL=="wwan*qcdm*", MODE="0660", GROUP="dialout"
|
||||
KERNEL=="wwan*at*", MODE="0660", GROUP="dialout"
|
||||
KERNEL=="cdc-wdm*", MODE="0660", GROUP="dialout"
|
||||
'';
|
||||
|
||||
# Open ports in the firewall.
|
||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||
# Or disable the firewall altogether.
|
||||
# networking.firewall.enable = false;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue