Make sure .ssh exists before trying to copy authorized_keys into it
This commit is contained in:
parent
ed11652607
commit
9d5e943468
2 changed files with 16 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue