nixos-config/system/all/sftp-user.nix

19 lines
371 B
Nix
Raw Normal View History

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