This commit is contained in:
iFargle 2023-12-30 22:32:24 +09:00
parent 7cdedc8abe
commit a095fd9a59
2 changed files with 5 additions and 4 deletions

View file

@ -4,9 +4,9 @@
systemCronJobs = [
# Backups from nuc-docker01 - See "backup-script.nix"
# https://git.sysctl.io/albert/random-scripts/src/branch/master/rsync-pi/rsync-all.sh
''0 9 * * * root rsync-backups >> /root/logs/backups/rsync_`date "+\%Y-\%m-\%d"`.log''
''0 19 * * 3 root rsync-data-vol >> /root/logs/data-vol/rsync_`date "+\%Y-\%m-\%d"`.log''
''0 1 * * * root rsync-sysctl >> /root/logs/sysctl/rsync_`date "+\%Y-\%m-\%d"`.log''
''0 9 * * * root rsync-backups &> /root/logs/backups/rsync_`date "+\%Y-\%m-\%d"`.log''
''0 19 * * 3 root rsync-data-vol &> /root/logs/data-vol/rsync_`date "+\%Y-\%m-\%d"`.log''
''0 1 * * * root rsync-sysctl &> /root/logs/sysctl/rsync_`date "+\%Y-\%m-\%d"`.log''
];
};
}

View file

@ -22,8 +22,9 @@
# backups-rpi4 cron job to back up sysctl.io's Docker files
users.users.root.openssh.authorizedKeys.keys = [ ''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKp2wgqFcr0LGaUXbom88/zK2631pysePUWIaCMljT0K root@backups-rpi4'' ];
services.openssh.settings.PermitRootLogin = lib.mkDefault true;
# steam , etc
# steam, etc
nixpkgs.config.allowUnfree = true;
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "thunderbolt" "sd_mod" "uas" ];