summaryrefslogtreecommitdiff
path: root/config/networking.nix
diff options
context:
space:
mode:
Diffstat (limited to 'config/networking.nix')
-rw-r--r--config/networking.nix23
1 files changed, 6 insertions, 17 deletions
diff --git a/config/networking.nix b/config/networking.nix
index 4716149..172834d 100644
--- a/config/networking.nix
+++ b/config/networking.nix
@@ -1,6 +1,12 @@
{ pkgs, ... }:
{
+ personal.networking = {
+ enable = true;
+ firewall.http = true;
+ ssh.enable = true;
+ };
+
networking = {
hostName = "hermes";
domain = "aristote.fr";
@@ -12,22 +18,5 @@
}];
defaultGateway = "93.95.228.1";
nameservers = [ "93.95.224.28" "93.95.224.29" ];
-
- firewall = {
- enable = true;
- allowedTCPPorts = [ 80 443 ];
- };
- };
-
- services.openssh = {
- enable = true;
- settings = {
- PermitRootLogin = "no";
- PasswordAuthentication = false;
- };
- extraConfig = ''
- AcceptEnv PS1
- '';
};
- services.fail2ban.enable = true;
}