From 58b5c2ba48bbad232bf13e2fb21aa23ec29c31a7 Mon Sep 17 00:00:00 2001 From: Mirza Arnaut Date: Sat, 15 Jun 2024 00:30:25 +0900 Subject: [PATCH] Move networking to its own folder --- nixos/default.nix | 5 +++-- nixos/network.nix | 23 ----------------------- nixos/network/default.nix | 2 +- 3 files changed, 4 insertions(+), 26 deletions(-) delete mode 100644 nixos/network.nix diff --git a/nixos/default.nix b/nixos/default.nix index 163273c..8e06cc9 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -1,12 +1,13 @@ { imports = [ + ./desktop + ./display ./environment + ./network ./services - ./network.nix # ./systemd.nix ./pr.nix - ./dm ./boot.nix ./locale.nix diff --git a/nixos/network.nix b/nixos/network.nix deleted file mode 100644 index 9a97fd3..0000000 --- a/nixos/network.nix +++ /dev/null @@ -1,23 +0,0 @@ -{ - #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"; - - networking = { - # Enable networking - networkmanager.enable = true; - firewall = { - # Disable the firewall altogether. - # networking.firewall.enable = false; - enable = true; - # allow certain ports - allowedTCPPorts = [ - 1313 # hugo - 3390 # RDP - ]; - }; - }; -} diff --git a/nixos/network/default.nix b/nixos/network/default.nix index 203d52c..9bfa924 100644 --- a/nixos/network/default.nix +++ b/nixos/network/default.nix @@ -1,6 +1,6 @@ { imports = [ - ./dns.nix + # ./dns.nix ]; #networking.hostName = "nixos"; # Define your hostname. #networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.