Compare commits
	
		
			2 commits
		
	
	
		
			ac463949c7
			...
			e46677a3f6
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| e46677a3f6 | |||
| 838f85f25d | 
					 3 changed files with 10 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -42,14 +42,21 @@ in {
 | 
			
		|||
  ];
 | 
			
		||||
 | 
			
		||||
  services.restic.backups = lib.mkIf (inputs ? nix-secrets) {
 | 
			
		||||
    remote = {
 | 
			
		||||
      repositoryFile = config.sops.secrets.restic-url.path;
 | 
			
		||||
    local = {
 | 
			
		||||
      repositoryFile = "/backup/restic/";
 | 
			
		||||
      passwordFile = config.sops.secrets.restic-password.path;
 | 
			
		||||
      initialize = true;
 | 
			
		||||
      paths = [
 | 
			
		||||
        "/storage/syncthing"
 | 
			
		||||
        "/storage/factorio"
 | 
			
		||||
      ];
 | 
			
		||||
      pruneOpts=[
 | 
			
		||||
        "--keep-within 14d"
 | 
			
		||||
        "--keep-daily 14"
 | 
			
		||||
        "--keep-weekly 8"
 | 
			
		||||
        "--keep-monthly 12"
 | 
			
		||||
        "--keep-yearly 10"
 | 
			
		||||
      ];
 | 
			
		||||
      timerConfig = {
 | 
			
		||||
        OnCalendar = "daily";
 | 
			
		||||
        Persistent = true;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -21,6 +21,7 @@
 | 
			
		|||
  home.packages = with pkgs; [
 | 
			
		||||
    sshfs
 | 
			
		||||
    just
 | 
			
		||||
    dua
 | 
			
		||||
    fd
 | 
			
		||||
    sd
 | 
			
		||||
    curl
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -21,7 +21,6 @@
 | 
			
		|||
  home.packages = with pkgs; [
 | 
			
		||||
    tre-command
 | 
			
		||||
    hyperfine
 | 
			
		||||
    dua
 | 
			
		||||
    fclones
 | 
			
		||||
    libqalculate
 | 
			
		||||
  ];
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue