From a09c3bd3c32f0b9f12139a11e9b76741bd1fd243 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Sat, 17 Feb 2024 13:01:09 +0100 Subject: [PATCH] Refactor --- modules/network.nix | 8 ++++++++ modules/system.nix | 25 +------------------------ 2 files changed, 9 insertions(+), 24 deletions(-) diff --git a/modules/network.nix b/modules/network.nix index 969179a..d6715b4 100644 --- a/modules/network.nix +++ b/modules/network.nix @@ -8,4 +8,12 @@ # Enable networking networking.networkmanager.enable = true; + + networking.firewall.enable = false; + + # Open ports in the firewall. + # networking.firewall.allowedTCPPorts = [ ... ]; + # networking.firewall.allowedUDPPorts = [ ... ]; + # Or disable the firewall altogether. + # networking.firewall.enable = false; } diff --git a/modules/system.nix b/modules/system.nix index e9243e3..8d38076 100644 --- a/modules/system.nix +++ b/modules/system.nix @@ -19,7 +19,6 @@ LC_TIME = "fr_FR.UTF-8"; }; - networking.firewall.enable = false; nixpkgs.config.allowUnfree = true; @@ -39,7 +38,7 @@ firefox kate emacs - vscode nixd vscode-extensions.bbenoist.nix + vscode nixd slack skypeforlinux discord @@ -51,28 +50,6 @@ # Enable CUPS to print documents. services.printing.enable = true; - # Enable touchpad support (enabled default in most desktopManager). - # services.xserver.libinput.enable = true; - - # Some programs need SUID wrappers, can be configured further or are - # started in user sessions. - # programs.mtr.enable = true; - # programs.gnupg.agent = { - # enable = true; - # enableSSHSupport = true; - # }; - - # List services that you want to enable: - - # Enable the OpenSSH daemon. - # services.openssh.enable = true; - - # Open ports in the firewall. - # networking.firewall.allowedTCPPorts = [ ... ]; - # networking.firewall.allowedUDPPorts = [ ... ]; - # Or disable the firewall altogether. - # networking.firewall.enable = false; - # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave