{ pkgs, config, ... }: let inherit (import ) restic; in { services.restic.backups.niveum = { initialize = true; inherit (restic) repository; timerConfig = { OnCalendar = "00:05"; RandomizedDelaySec = "5h"; }; passwordFile = toString ; extraBackupArgs = [ "--exclude=/home/kfm/projects/nixpkgs/.git" "--exclude=node_modules" ]; paths = [ "/home/kfm/work" "/home/kfm/projects" "/home/kfm/cloud" "/home/kfm/.gnupg" "/home/kfm/.ssh" ]; }; environment.systemPackages = [ (pkgs.writers.writeDashBin "restic-niveum" '' ${pkgs.restic}/bin/restic -r ${restic.repository} -p ${} "$@" '') ]; }