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

18 lines
371 B
Nix
Raw Normal View History

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
};
};
}