nixos-config/system/all/sftp-user.nix
2019-12-20 17:54:26 +13:00

17 lines
371 B
Nix

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