From fc9cbc6a0cec4b39f2dd5184118e0b50d78b501e Mon Sep 17 00:00:00 2001 From: derped Date: Mon, 28 Aug 2023 22:04:18 +0200 Subject: [PATCH] Add sops helper function to fn. --- fn.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fn.nix b/fn.nix index 42fc3be..2633632 100644 --- a/fn.nix +++ b/fn.nix @@ -57,6 +57,9 @@ rec { (p: ifelse (depsBroken p) true (depsBrokenRec (deps p))) (p: true) (deps p) ); + sopsHelper = template: names: options: let + nameList = map template names; + in listToAttrs (map (nameEntry: {name = nameEntry; value = options;}) nameList); pkgFilter = ld: (filter (p: ( ifelse (isBroken p)