From 6085f86d2a39c5c8d8c8f256fe2650f02e6ff368 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Mon, 29 May 2023 02:13:36 +0200 Subject: initial jump to nixos 23.05 --- common/desktop.nix | 2 ++ common/headless.nix | 8 +++++--- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'common') diff --git a/common/desktop.nix b/common/desktop.nix index c97b3b9..376bd87 100644 --- a/common/desktop.nix +++ b/common/desktop.nix @@ -24,6 +24,8 @@ drivers = [ pkgs.epson-escpr2 pkgs.epson-escpr ]; }; + programs.fish.enable = true; + users.mutableUsers = false; users.defaultUserShell = pkgs.fish; users.users.stuebinm = { diff --git a/common/headless.nix b/common/headless.nix index 25c668b..396ded0 100644 --- a/common/headless.nix +++ b/common/headless.nix @@ -18,8 +18,10 @@ services.openssh = { enable = true; - permitRootLogin = "prohibit-password"; - passwordAuthentication = false; + settings = { + PermitRootLogin = "prohibit-password"; + PasswordAuthentication = false; + }; }; security.sudo.enable = false; @@ -35,7 +37,7 @@ bantime-increment.enable = true; bantime-increment.overalljails = true; bantime-increment.maxtime = "1312m"; - ignoreIP = [ "185.39.64.13" ]; + maxretry = 20; }; services.logrotate = { -- cgit v1.2.3