From b69140605c92ec45963813e1a8ff7f2b4ead687d Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Sat, 4 Oct 2025 20:48:08 +0200 Subject: [PATCH] Update NixOS networking configuration --- modules/networking.nix | 21 ++++++--------------- modules/users.nix | 2 +- 2 files changed, 7 insertions(+), 16 deletions(-) diff --git a/modules/networking.nix b/modules/networking.nix index 86cddc1..0210822 100644 --- a/modules/networking.nix +++ b/modules/networking.nix @@ -1,19 +1,10 @@ { ... }: { - 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; + networking.hostName = "nixos"; + networking.wireless = { iwd = { enable = true; }; }; + networking.firewall = { + enable = true; + allowedTCPPorts = [ 22 ]; + }; } diff --git a/modules/users.nix b/modules/users.nix index 5df53dd..b303305 100644 --- a/modules/users.nix +++ b/modules/users.nix @@ -4,6 +4,6 @@ users.users.h = { isNormalUser = true; description = "h"; - extraGroups = [ "wheel" "networkmanager" ]; + extraGroups = [ "wheel" ]; }; }