From f6936df4fb544edadb5f26f15a8101ac2fa3c369 Mon Sep 17 00:00:00 2001 From: Benedikt Ritter Date: Fri, 29 Nov 2024 21:43:41 +0100 Subject: [PATCH] hosts (srv-prod-2): Configure a shell for user nextcloud Otherwise interactive and non-interactive SSH sessions do not work which breaks the nextcloud-sync script introduced in 4fb7d7407cbde5d3543e025cf911fd84247efdfa. --- systems/x86_64-linux/srv-prod-2/configuration.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/systems/x86_64-linux/srv-prod-2/configuration.nix b/systems/x86_64-linux/srv-prod-2/configuration.nix index 5978602..20de5eb 100644 --- a/systems/x86_64-linux/srv-prod-2/configuration.nix +++ b/systems/x86_64-linux/srv-prod-2/configuration.nix @@ -22,7 +22,10 @@ }; }; - users.users.nextcloud.openssh.authorizedKeys.keyFiles = [../srv-test-2/ssh_srv-test-2_ed25519_key.pub]; + users.users.nextcloud = { + openssh.authorizedKeys.keyFiles = [../srv-test-2/ssh_srv-test-2_ed25519_key.pub]; + useDefaultShell = true; + }; # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions