mirror of
				https://github.com/shokinn/.files.git
				synced 2025-11-04 12:38:10 +00:00 
			
		
		
		
	change secrets.nix location from root to secrets/secrets.nix;
updated agenix-helper and added an alias to accommodate that change
This commit is contained in:
		
							parent
							
								
									2deb21d942
								
							
						
					
					
						commit
						cdf4a224a9
					
				
					 2 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -105,7 +105,7 @@ gen-user-key() {
 | 
			
		|||
  local working_directory="${3:-$(pwd)}"
 | 
			
		||||
  local begin_marker='#-----BEGIN USER-SECRETS-----'
 | 
			
		||||
  local end_marker='#------END USER-SECRETS------'
 | 
			
		||||
  local input_file="${working_directory}/secrets.nix"
 | 
			
		||||
  local input_file="${working_directory}/secrets/secrets.nix"
 | 
			
		||||
  local userkey
 | 
			
		||||
 | 
			
		||||
  if [[ ${public_key} == "EMPTY" ]]; then
 | 
			
		||||
| 
						 | 
				
			
			@ -132,7 +132,7 @@ get-host-key() {
 | 
			
		|||
  local working_directory="${4:-$(pwd)}"
 | 
			
		||||
  local begin_marker='#-----BEGIN SYSTEM-SECRETS-----'
 | 
			
		||||
  local end_marker='#------END SYSTEM-SECRETS------'
 | 
			
		||||
  local input_file="${working_directory}/secrets.nix"
 | 
			
		||||
  local input_file="${working_directory}/secrets/secrets.nix"
 | 
			
		||||
  local hostkey
 | 
			
		||||
 | 
			
		||||
  echo "getting host public key for host ${keyname}"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue