Compare commits
No commits in common. "e7d912ea780bd92109581b9b2540897f721d956c" and "98433cca605ba07797885c9cd432620e53ad0154" have entirely different histories.
e7d912ea78
...
98433cca60
@ -16,7 +16,6 @@
|
|||||||
colmena
|
colmena
|
||||||
agenix
|
agenix
|
||||||
clerie-sops
|
clerie-sops
|
||||||
clerie-sops-edit
|
|
||||||
sops
|
sops
|
||||||
|
|
||||||
# Debugging
|
# Debugging
|
||||||
|
@ -132,7 +132,6 @@
|
|||||||
clerie-update-nixfiles
|
clerie-update-nixfiles
|
||||||
clerie-sops
|
clerie-sops
|
||||||
clerie-sops-config
|
clerie-sops-config
|
||||||
clerie-sops-edit
|
|
||||||
chromium-incognito
|
chromium-incognito
|
||||||
iot-data
|
iot-data
|
||||||
nix-remove-result-links
|
nix-remove-result-links
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
pkgs.writeShellApplication {
|
|
||||||
name = "clerie-sops-edit";
|
|
||||||
text = builtins.readFile ./clerie-sops-edit.sh;
|
|
||||||
runtimeInputs = with pkgs; [
|
|
||||||
clerie-sops
|
|
||||||
jq
|
|
||||||
];
|
|
||||||
}
|
|
@ -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}"
|
|
@ -4,7 +4,6 @@ final: prev: {
|
|||||||
clerie-merge-nixfiles-update = final.callPackage ./clerie-update-nixfiles/clerie-merge-nixfiles-update.nix {};
|
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 = final.callPackage ./clerie-sops/clerie-sops.nix {};
|
||||||
clerie-sops-config = final.callPackage ./clerie-sops/clerie-sops-config.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 {};
|
clerie-update-nixfiles = final.callPackage ./clerie-update-nixfiles/clerie-update-nixfiles.nix {};
|
||||||
chromium-incognito = final.callPackage ./chromium-incognito {};
|
chromium-incognito = final.callPackage ./chromium-incognito {};
|
||||||
iot-data = final.python3.pkgs.callPackage ./iot-data {};
|
iot-data = final.python3.pkgs.callPackage ./iot-data {};
|
||||||
|
Loading…
Reference in New Issue
Block a user