new nixos config

This commit is contained in:
Pavel 2026-02-27 01:57:02 +03:00
parent 399690def0
commit 177a4bf6ff

View File

@ -13,6 +13,11 @@
# Bootloader. # Bootloader.
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = 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.hostName = "homelab"; # Define your hostname.
networking.networkmanager.wifi.powersave = false; networking.networkmanager.wifi.powersave = false;
@ -108,6 +113,7 @@
# Util # Util
age age
btop btop
dig
curl curl
git git
pkgs.inetutils pkgs.inetutils
@ -117,6 +123,7 @@
unzip unzip
pkgs.sysstat pkgs.sysstat
yt-dlp yt-dlp
openssl
# Dev # Dev
docker-compose docker-compose
python3 python3
@ -166,7 +173,7 @@
# Open ports in the firewall. # 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 = [ 53 ];
# networking.firewall.allowedUDPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether. # Or disable the firewall altogether.