Modularize '/etc/configuration.nix'

This commit is contained in:
2025-05-30 20:28:48 +02:00
parent f948a51a63
commit 931244ee90
9 changed files with 84 additions and 109 deletions

19
modules/networking.nix Normal file
View File

@@ -0,0 +1,19 @@
{ ... }:
{
networking.hostName = "nixos"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Enable networking
networking.networkmanager.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
}