mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
docs: update attributions
This commit is contained in:
parent
b69ff8e50d
commit
4cba57bdd8
6 changed files with 33 additions and 55 deletions
|
|
@ -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 [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue