Add sops helper function to fn.
This commit is contained in:
parent
b2da82bff1
commit
fc9cbc6a0c
1 changed files with 3 additions and 0 deletions
3
fn.nix
3
fn.nix
|
@ -57,6 +57,9 @@ rec {
|
||||||
(p: ifelse (depsBroken p) true (depsBrokenRec (deps p)))
|
(p: ifelse (depsBroken p) true (depsBrokenRec (deps p)))
|
||||||
(p: true) (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
|
pkgFilter = ld: (filter
|
||||||
(p: (
|
(p: (
|
||||||
ifelse (isBroken p)
|
ifelse (isBroken p)
|
||||||
|
|
Loading…
Reference in a new issue