agenix-rekey: move to flake part
This commit is contained in:
		
							
								
								
									
										29
									
								
								nix/agenix-rekey.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								nix/agenix-rekey.nix
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,29 @@ | ||||
| { | ||||
|   inputs, | ||||
|   ... | ||||
| }: | ||||
| { | ||||
|   imports = [ | ||||
|     inputs.agenix-rekey.flakeModule | ||||
|   ]; | ||||
|  | ||||
|   perSystem = | ||||
|     { config, ... }: | ||||
|     { | ||||
|       agenix-rekey.nixosConfigurations = inputs.self.nixosConfigurations; | ||||
|       devshells.default = { | ||||
|         commands = [ | ||||
|           { | ||||
|             inherit (config.agenix-rekey) package; | ||||
|             help = "Edit, generate, and rekey secrets"; | ||||
|           } | ||||
|         ]; | ||||
|         env = [ | ||||
|           { | ||||
|             name = "AGENIX_REKEY_ADD_TO_GIT"; | ||||
|             value = "true"; | ||||
|           } | ||||
|         ]; | ||||
|       }; | ||||
|     }; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user