secrets.nix: Remove age secrets management
This commit is contained in:
		| @@ -1,11 +0,0 @@ | ||||
| { pkgs, ... }: | ||||
|  | ||||
| pkgs.writeShellApplication { | ||||
|   name = "nixfiles-add-secret"; | ||||
|   text = builtins.readFile ./nixfiles-add-secret.sh; | ||||
|   runtimeInputs = with pkgs; [ | ||||
|     agenix | ||||
|     git | ||||
|   ]; | ||||
| } | ||||
|  | ||||
| @@ -1,15 +0,0 @@ | ||||
| #!/usr/bin/env bash | ||||
|  | ||||
| set -euo pipefail | ||||
|  | ||||
| cd "$(git rev-parse --show-toplevel)" | ||||
|  | ||||
| host="$1" | ||||
| secret="$2" | ||||
|  | ||||
| mkdir -p "hosts/${host}/secrets" | ||||
|  | ||||
| agenix -e "hosts/${host}/secrets/new" | ||||
|  | ||||
| mv "hosts/${host}/secrets/new" "hosts/${host}/secrets/${secret}.age" | ||||
|  | ||||
		Reference in New Issue
	
	Block a user