diff --git a/lib/stdlib-extended.nix b/lib/stdlib-extended.nix index d536194..92945a5 100644 --- a/lib/stdlib-extended.nix +++ b/lib/stdlib-extended.nix @@ -16,6 +16,16 @@ in }; }; + mkExprBinding = key: action: desc: + self.mkIf (key != null) { + "${key}" = { + inherit action desc; + lua = true; + silent = true; + expr = true; + }; + }; + mkBinding = key: action: desc: self.mkIf (key != null) { "${key}" = {