My Nix Configuration
1{ lib, pkgs, ... }: 2{ 3 networking = { 4 hostName = "marvin"; 5 hostId = "5711215d"; 6 enableIPv6 = true; 7 useDHCP = lib.mkDefault true; 8 interfaces = { 9 enp42s0.useDHCP = lib.mkDefault true; 10 wlp41s0.useDHCP = lib.mkDefault true; 11 }; 12 networkmanager = { 13 enable = true; 14 }; 15 wireless.enable = false; 16 17 # Enable NAT for containers 18 nat = { 19 enable = true; 20 internalInterfaces = [ "ve-+" ]; 21 externalInterface = "wlp41s0"; 22 # Lazy IPv6 connectivity for the container 23 enableIPv6 = true; 24 }; 25 }; 26 systemd.services.wpa_supplicant.environment.OPENSSL_CONF = pkgs.writeText "openssl.cnf" '' 27 openssl_conf = openssl_init 28 [openssl_init] 29 ssl_conf = ssl_sect 30 [ssl_sect] 31 system_default = system_default_sect 32 [system_default_sect] 33 Options = UnsafeLegacyRenegotiation 34 ''; 35}