feat(nix): add sops for secrets
This commit is contained in:
		
							parent
							
								
									89232a7cd1
								
							
						
					
					
						commit
						d04ba5d01a
					
				
					 5 changed files with 75 additions and 3 deletions
				
			
		
							
								
								
									
										21
									
								
								.sops.yaml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								.sops.yaml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,21 @@
 | 
			
		|||
keys:
 | 
			
		||||
  - &server_lappy age1ew0qvrhjafqcdluupf0etgchh7h7987kgqnfvh7plxe44k8xy94qw9pe5n
 | 
			
		||||
  - &server_tanzanite age1myy382gauvgg77lyaqmj4ty7a9pgzqu85pqufk2rytudg9g8edeq5rupzw
 | 
			
		||||
 | 
			
		||||
creation_rules:
 | 
			
		||||
  - path_regex: secrets/[^/]+\.(yaml|json|env|ini)$
 | 
			
		||||
    key_groups:
 | 
			
		||||
      - age:
 | 
			
		||||
        - *admin_lappy
 | 
			
		||||
  - path_regex: secrets/stitchynyan/[^/]+\.(yaml|json|env|ini)$
 | 
			
		||||
    key_groups:
 | 
			
		||||
      - age:
 | 
			
		||||
        - *admin_lappy
 | 
			
		||||
  - path_regex: secrets/nyadmin/[^/]+\.(yaml|json|env|ini)$
 | 
			
		||||
    key_groups:
 | 
			
		||||
      - age:
 | 
			
		||||
        - *admin_tanzanite
 | 
			
		||||
  - path_regex: secrets/email_accounts/[^/]+\.(yaml|json|env|ini)$
 | 
			
		||||
    key_groups:
 | 
			
		||||
      - age:
 | 
			
		||||
        - *server_tanzanite
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue