summaryrefslogtreecommitdiff
path: root/config/networking.nix
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2023-02-19 16:56:48 +0100
committerQuentin Aristote <quentin@aristote.fr>2023-02-19 17:01:10 +0100
commit25f9b854c0065a3d63278178ef4c8abc99108eba (patch)
tree50eb4c1d8e32d65b49905ebfb8ff8411045e30d6 /config/networking.nix
parent547870aaafcafe4836557f2fc98768053af26ef2 (diff)
parent7532f335a3ed8a898e2df95f06faa38bad2b8e5d (diff)
Merge branch 'rollback'
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;
}