From 9b8468fadabe6dd1da9072681eaa7d2d3e12c432 Mon Sep 17 00:00:00 2001 From: Pavel Date: Sat, 4 Apr 2026 17:41:48 +0300 Subject: [PATCH] nixos config update --- nixos/configuration.nix | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 3a64d6b..308d01b 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -18,6 +18,15 @@ "net.ipv6.conf.default.disable_ipv6" = 1; "net.ipv6.conf.lo.disable_ipv6" = 1; }; + # Boot blacklist WiFi drivers + boot.blacklistedKernelModules = [ + "mt7921e" + "mt7921_common" + "mt76_connac_lib" + "mt76" + "mt792x_lib" + "mt7921_lib" + ]; hardware.enableRedistributableFirmware = true; boot.extraModulePackages = with config.boot.kernelPackages; [ r8125 @@ -113,6 +122,9 @@ ignoreregex = ''; + # For VsCode + programs.nix-ld.enable = true; + # Disable suspend of my homelab. Added when my server every ~15 minutes suspend. services.logind.settings.Login = { HandlePowerKey = "poweroff"; @@ -250,8 +262,8 @@ }; # Open ports in the firewall. - networking.firewall.allowedTCPPorts = [22 80 443 53 ]; - networking.firewall.allowedUDPPorts = [ 53 ]; + networking.firewall.allowedTCPPorts = [22 80 443 53 3389 3724 8086]; + networking.firewall.allowedUDPPorts = [53 3389 ]; # networking.firewall.allowedUDPPorts = [ ... ]; # Or disable the firewall altogether. # networking.firewall.enable = false;