{ pkgs, ... }: { networking = { hostName = "ty-laptop-server"; # TODO Firewall causes issues with containers, need to fix it firewall = { enable = true; package = pkgs.iptables; }; # Enable NetworkManager networkmanager = { enable = true; ensureProfiles = { # secrets.entries = [ # { # file = "/run/"; # } # ]; profiles = { eduroam = { "802-1x" = { eap = "peap;"; identity = "tyler_beckman@mines.edu"; password-flags = "1"; phase2-auth = "mschapv2"; }; connection = { autoconnect-priority = "99"; id = "eduroam"; permissions = "user:ty:;"; type = "wifi"; }; ipv4.method = "auto"; ipv6.method = "disabled"; # I hate mines IT wifi = { mode = "infrastructure"; ssid = "eduroam"; }; wifi-security.key-mgmt = "wpa-eap"; }; }; }; }; }; # Tailscale overlay network configuration services.tailscale = { enable = true; useRoutingFeatures = "both"; openFirewall = true; }; networking.firewall.trustedInterfaces = [ "tailscale0" ]; }