lib: add pushDownDefault to binds

This commit is contained in:
NotAShelf 2024-03-12 03:48:53 +03:00
parent b54032f3f3
commit d3f6446541
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29

View file

@ -1,6 +1,6 @@
{lib}: let
inherit (lib.options) mkOption;
inherit (lib.modules) mkIf;
inherit (lib.modules) mkIf mkDefault;
inherit (lib.types) nullOr str;
inherit (lib.attrsets) isAttrs mapAttrs;
@ -65,6 +65,8 @@
mkSetLuaBinding = binding: action:
mkLuaBinding binding.value action binding.description;
pushDownDefault = attr: mapAttrs (_name: value: mkDefault value) attr;
};
in
binds