2019-12-20 05:54:26 +01:00
|
|
|
{ config, pkgs, lib, ... }: {
|
2019-10-24 02:20:38 +02:00
|
|
|
|
|
|
|
module.backup.sftpUser = {
|
|
|
|
|
|
|
|
# my backup user
|
|
|
|
"backup" = {
|
|
|
|
enable = true;
|
|
|
|
initialize = true;
|
|
|
|
home = toString /backup/remote/backup;
|
2019-12-20 05:54:26 +01:00
|
|
|
authorizedKeys.keyFiles =
|
|
|
|
[ (toString <common_secrets/backup/sftp-user_rsa.pub>) ]
|
|
|
|
++ config.users.users.root.openssh.authorizedKeys.keyFiles;
|
2019-10-24 02:20:38 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|