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

18 lines
364 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;
2020-04-29 21:32:54 +02:00
home = toString /backup/remote;
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
};
};
}