Make sure .ssh exists before trying to copy authorized_keys into it

This commit is contained in:
Charlotte Van Petegem 2022-03-06 02:14:26 +01:00
parent ed11652607
commit 9d5e943468
No known key found for this signature in database
GPG key ID: 019E764B7184435A
2 changed files with 16 additions and 4 deletions

View file

@ -1,7 +1,10 @@
{ config, lib, ... }:
{
chvp.base.zfs.ensureExists = [ "${config.chvp.dataPrefix}/etc/ssh" ];
chvp.base.zfs = {
ensureSystemExists = [ "${config.chvp.dataPrefix}/etc/ssh" ];
ensureHomeExists = [ ".ssh" ];
};
services.openssh = {
enable = true;
passwordAuthentication = false;