20 lines
569 B
Nix
20 lines
569 B
Nix
# configuration allowing this machine to be user as a backup server
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
users.users.backup = {
|
|
isNormalUser = true;
|
|
openssh.authorizedKeys.keys = [
|
|
''command="${pkgs.rrsync}/bin/rrsync /mnt/backup",restrict ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIF1e7hxxQD7pVKMquEuiBrLNFfx9ZRAOU1SGky4iXacD''
|
|
#''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIF1e7hxxQD7pVKMquEuiBrLNFfx9ZRAOU1SGky4iXacD Ithuriel@openmediavault''
|
|
];
|
|
|
|
packages = [
|
|
pkgs.rsync
|
|
pkgs.rrsync
|
|
];
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts = [ 22 ];
|
|
}
|