mirror of
				https://github.com/Stunkymonkey/nixos.git
				synced 2025-10-31 01:32:11 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			448 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			448 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| # Deployed services
 | |
| { config, ... }:
 | |
| let
 | |
|   inherit (config.sops) secrets;
 | |
| in
 | |
| {
 | |
|   sops.secrets."borgbackup/password" = { };
 | |
|   sops.secrets."borgbackup/ssh_key" = { };
 | |
| 
 | |
|   # List services that you want to enable:
 | |
|   my.services = {
 | |
|     backup = {
 | |
|       enable = true;
 | |
|       OnFailureNotification = true;
 | |
|       passwordFile = secrets."borgbackup/password".path;
 | |
|       sshKeyFile = secrets."borgbackup/ssh_key".path;
 | |
|       paths = [ "/" ];
 | |
|     };
 | |
|   };
 | |
| }
 | 
