imported laptop configs
This commit is contained in:
30
modules/wrappedPrograms/wlr-which-key.nix
Normal file
30
modules/wrappedPrograms/wlr-which-key.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{inputs, lib, self, ...}: let
|
||||
inherit (lib) getExe;
|
||||
mkWhichKey = pkgs: menu:
|
||||
(self.wrapperModules.which-key.apply {
|
||||
inherit pkgs;
|
||||
settings = {
|
||||
inherit menu;
|
||||
anchor = "bottom-right";
|
||||
};
|
||||
}).wrapper;
|
||||
in {
|
||||
flake.mkWhichKeyExe = pkgs: menu: getExe (mkWhichKey pkgs menu);
|
||||
flake.wrapperModules.which-key = inputs.wrappers.lib.wrapModule (
|
||||
{ config, lib, ... }: let
|
||||
yamlFormat = config.pkgs.formats.yaml {};
|
||||
in {
|
||||
options = {
|
||||
settings = lib.mkOption {
|
||||
type = yamlFormat.type;
|
||||
};
|
||||
};
|
||||
config = {
|
||||
package = config.pkgs.wlr-which-key;
|
||||
args = [
|
||||
(toString (yamlFormat.generate "config.yaml" config.settings))
|
||||
];
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user