nixos config update

This commit is contained in:
Pavel 2026-04-04 17:41:48 +03:00
parent 525e4d5092
commit 9b8468fada

View File

@ -18,6 +18,15 @@
"net.ipv6.conf.default.disable_ipv6" = 1; "net.ipv6.conf.default.disable_ipv6" = 1;
"net.ipv6.conf.lo.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; hardware.enableRedistributableFirmware = true;
boot.extraModulePackages = with config.boot.kernelPackages; [ boot.extraModulePackages = with config.boot.kernelPackages; [
r8125 r8125
@ -113,6 +122,9 @@
ignoreregex = ignoreregex =
''; '';
# For VsCode
programs.nix-ld.enable = true;
# Disable suspend of my homelab. Added when my server every ~15 minutes suspend. # Disable suspend of my homelab. Added when my server every ~15 minutes suspend.
services.logind.settings.Login = { services.logind.settings.Login = {
HandlePowerKey = "poweroff"; HandlePowerKey = "poweroff";
@ -250,8 +262,8 @@
}; };
# Open ports in the firewall. # Open ports in the firewall.
networking.firewall.allowedTCPPorts = [22 80 443 53 ]; networking.firewall.allowedTCPPorts = [22 80 443 53 3389 3724 8086];
networking.firewall.allowedUDPPorts = [ 53 ]; networking.firewall.allowedUDPPorts = [53 3389 ];
# networking.firewall.allowedUDPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether. # Or disable the firewall altogether.
# networking.firewall.enable = false; # networking.firewall.enable = false;