nixos-config/system/all/sftp-user.nix
2020-04-30 02:23:56 +02:00

17 lines
364 B
Nix

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