{ config, lib, pkgs, ... }: { imports = [ ./common.nix ]; home.username = "digyx"; home.homeDirectory = "/var/home/digyx"; home.packages = with pkgs; [ i3status-rust ]; # Services services.syncthing.enable = true; # Borgmatic services.borgmatic = { enable = true; frequency = "*-*-* 08:00:00"; }; programs.borgmatic = { enable = true; backups = { diana = { location = { sourceDirectories = [ "/var/home/digyx" ]; repositories = [ "ssh://tztl5fp2@tztl5fp2.repo.borgbase.com/./repo" ]; }; retention = { keepDaily = 7; keepWeekly = 4; keepMonthly = 12; }; storage = { encryptionPasscommand = "${pkgs.pass}/bin/pass borg-key"; extraConfig.ssh_command = "/usr/bin/ssh"; }; }; }; }; }