Add sops helper function to fn.

This commit is contained in:
Kevin Baensch 2023-08-28 22:04:18 +02:00
parent b2da82bff1
commit fc9cbc6a0c
Signed by: derped
GPG key ID: C0F1D326C7626543

3
fn.nix
View file

@ -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)