From 89749d73a82bd0bfdfa225be06a6db8e82371ff4 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 20 Mar 2023 11:51:00 +0100 Subject: ... --- hosts/eostre/default.nix | 11 ++++++++++- hosts/sif/default.nix | 8 +++++++- hosts/surtr/default.nix | 2 -- hosts/vidhar/default.nix | 4 ---- 4 files changed, 17 insertions(+), 8 deletions(-) (limited to 'hosts') diff --git a/hosts/eostre/default.nix b/hosts/eostre/default.nix index 01dee9ae..2752d136 100644 --- a/hosts/eostre/default.nix +++ b/hosts/eostre/default.nix @@ -4,7 +4,7 @@ with lib; { imports = with flake.nixosModules.systemProfiles; [ - default-locale nfsroot + default-locale nfsroot openssh ]; config = { @@ -96,5 +96,14 @@ with lib; videoDrivers = [ "nvidia" ]; }; + + + services.openssh = { + enable = true; + settings = { + PasswordAuthentication = true; + KbdInteractiveAuthentication = true; + }; + }; }; } diff --git a/hosts/sif/default.nix b/hosts/sif/default.nix index 4c405436..ca2f183b 100644 --- a/hosts/sif/default.nix +++ b/hosts/sif/default.nix @@ -298,7 +298,13 @@ in { after = ["dnsmasq.service" "sys-subsystem-net-devices-virbr0.device"]; }; - services.openssh.enable = true; + services.openssh = { + enable = true; + settings = { + PasswordAuthentication = true; + KbdInteractiveAuthentication = true; + }; + }; powerManagement = { enable = true; diff --git a/hosts/surtr/default.nix b/hosts/surtr/default.nix index 75dd9847..6925445b 100644 --- a/hosts/surtr/default.nix +++ b/hosts/surtr/default.nix @@ -135,8 +135,6 @@ with lib; services.openssh = { enable = true; - passwordAuthentication = false; - kbdInteractiveAuthentication = false; extraConfig = '' AllowGroups ssh ''; diff --git a/hosts/vidhar/default.nix b/hosts/vidhar/default.nix index d064e3da..b0277c14 100644 --- a/hosts/vidhar/default.nix +++ b/hosts/vidhar/default.nix @@ -82,10 +82,6 @@ with lib; services.openssh = { enable = true; - settings = { - PasswordAuthentication = false; - KbdInteractiveAuthentication = false; - }; extraConfig = '' AllowGroups ssh ''; -- cgit v1.2.3