docs: update attributions

This commit is contained in:
Leon Schwarzäugl 2025-06-16 23:21:46 +02:00
parent b69ff8e50d
commit 4cba57bdd8
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
6 changed files with 33 additions and 55 deletions

View file

@ -1,3 +1,4 @@
# adapted from https://github.com/oddlama/nix-config/blob/main/nix/extra-builtins.nix
{ exec, ... }:
let
assertMsg = pred: msg: pred || builtins.throw msg;
@ -16,7 +17,7 @@ in
sopsImportEncrypted =
nixFile:
assert assertMsg (builtins.isPath nixFile)
"The file to decrypt must be given as a path to prevent impurity.";
"The file to decrypt must be given as a path (not a string) to prevent impurity.";
assert assertMsg (hasSuffix ".nix.enc" nixFile)
"The content of the decrypted file must be a nix expression and should therefore end in .nix.enc";
exec [

View file

@ -1,5 +1,5 @@
#!/usr/bin/env bash
# adapted from https://github.com/oddlama/nix-config/blob/main/nix/rage-decrypt-and-cache.sh
set -euo pipefail
print_out_path=false