From 8a3ede0d9c002a0129fe3d32059e9a05d41f274d Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Sun, 4 Jun 2023 10:31:42 -0400 Subject: Updates --- config/container.nix | 2 +- config/router.nix | 2 +- machines/dragon.nix | 2 +- machines/firelink.nix | 2 +- modules/common.nix | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config/container.nix b/config/container.nix index 0c81251..eaf78c3 100644 --- a/config/container.nix +++ b/config/container.nix @@ -3,7 +3,7 @@ networking.firewall.allowedTCPPorts = [ 22 ]; services = { openssh.enable = lib.mkDefault true; - openssh.passwordAuthentication = false; + openssh.settings.PasswordAuthentication = false; }; system.activationScripts.installInitScript = '' ln -fs $systemConfig/init /init diff --git a/config/router.nix b/config/router.nix index aa6b5d9..cb2eeb2 100644 --- a/config/router.nix +++ b/config/router.nix @@ -188,7 +188,7 @@ in { services = { openssh.enable = lib.mkDefault true; - openssh.passwordAuthentication = false; + openssh.settings.PasswordAuthentication = false; }; boot.kernel.sysctl = { diff --git a/machines/dragon.nix b/machines/dragon.nix index a97199d..ca43995 100644 --- a/machines/dragon.nix +++ b/machines/dragon.nix @@ -98,7 +98,7 @@ in { security.pam.services.sshd.unixAuth = lib.mkForce true; services.openssh = { enable = lib.mkDefault true; - passwordAuthentication = false; + settings.PasswordAuthentication = false; extraConfig = '' Match User readonly PasswordAuthentication yes diff --git a/machines/firelink.nix b/machines/firelink.nix index ddea2f0..0583434 100644 --- a/machines/firelink.nix +++ b/machines/firelink.nix @@ -62,7 +62,7 @@ in { # services.xserver.displayManager.sddm.enable = true; services.xserver.displayManager.defaultSession = "plasmawayland"; services.xserver.displayManager.autoLogin = { - enable = true; + enable = false; user = "guest"; }; diff --git a/modules/common.nix b/modules/common.nix index 49a2379..2397b28 100644 --- a/modules/common.nix +++ b/modules/common.nix @@ -77,7 +77,7 @@ services = { postgresql = { package = pkgs.postgresql_12; }; - openssh.passwordAuthentication = false; + openssh.settings.PasswordAuthentication = false; openssh.kbdInteractiveAuthentication = false; fwupd.enable = true; }; -- cgit v1.2.3