1
0

Compare commits

..

No commits in common. "e7d912ea780bd92109581b9b2540897f721d956c" and "98433cca605ba07797885c9cd432620e53ad0154" have entirely different histories.

5 changed files with 0 additions and 38 deletions

View File

@ -16,7 +16,6 @@
colmena
agenix
clerie-sops
clerie-sops-edit
sops
# Debugging

View File

@ -132,7 +132,6 @@
clerie-update-nixfiles
clerie-sops
clerie-sops-config
clerie-sops-edit
chromium-incognito
iot-data
nix-remove-result-links

View File

@ -1,10 +0,0 @@
{ pkgs, ... }:
pkgs.writeShellApplication {
name = "clerie-sops-edit";
text = builtins.readFile ./clerie-sops-edit.sh;
runtimeInputs = with pkgs; [
clerie-sops
jq
];
}

View File

@ -1,25 +0,0 @@
#!/usr/bin/env bash
# Edit a single attribute of a sops json file
# Helps working with multiline strings in json
set -euo pipefail
SECRETS_FILE="$1"
KEY="$2"
if [[ -n $EDITOR ]]; then
EDITOR=vim
fi
TMP_FILE="$(mktemp)"
clerie-sops --decrypt --extract "[\"${KEY}\"]" "${SECRETS_FILE}" > "${TMP_FILE}"
vim "${TMP_FILE}"
JSON_QUOTED_SECRET="$(jq -Rs '.' "${TMP_FILE}")"
rm "${TMP_FILE}"
clerie-sops --set "[\"${KEY}\"] ${JSON_QUOTED_SECRET}" "${SECRETS_FILE}"

View File

@ -4,7 +4,6 @@ final: prev: {
clerie-merge-nixfiles-update = final.callPackage ./clerie-update-nixfiles/clerie-merge-nixfiles-update.nix {};
clerie-sops = final.callPackage ./clerie-sops/clerie-sops.nix {};
clerie-sops-config = final.callPackage ./clerie-sops/clerie-sops-config.nix {};
clerie-sops-edit = final.callPackage ./clerie-sops/clerie-sops-edit.nix {};
clerie-update-nixfiles = final.callPackage ./clerie-update-nixfiles/clerie-update-nixfiles.nix {};
chromium-incognito = final.callPackage ./chromium-incognito {};
iot-data = final.python3.pkgs.callPackage ./iot-data {};