From 177a4bf6ffeac38fface09c81e7f04278be15514 Mon Sep 17 00:00:00 2001 From: Pavel Date: Fri, 27 Feb 2026 01:57:02 +0300 Subject: [PATCH] new nixos config --- nixos/configuration.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 006e1f7..c7ad86f 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -13,6 +13,11 @@ # Bootloader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; + boot.kernel.sysctl = { + "net.ipv6.conf.all.disable_ipv6" = 1; + "net.ipv6.conf.default.disable_ipv6" = 1; + "net.ipv6.conf.lo.disable_ipv6" = 1; + }; networking.hostName = "homelab"; # Define your hostname. networking.networkmanager.wifi.powersave = false; @@ -108,6 +113,7 @@ # Util age btop + dig curl git pkgs.inetutils @@ -117,6 +123,7 @@ unzip pkgs.sysstat yt-dlp + openssl # Dev docker-compose python3 @@ -166,7 +173,7 @@ # Open ports in the firewall. - networking.firewall.allowedTCPPorts = [22 80 443 53 ]; + networking.firewall.allowedTCPPorts = [22 80 443 53 9999 ]; networking.firewall.allowedUDPPorts = [ 53 ]; # networking.firewall.allowedUDPPorts = [ ... ]; # Or disable the firewall altogether.