From 07229574e2e0feef3e4984025d9b2b9a6776f51d Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Mon, 30 Dec 2024 22:41:00 +0100 Subject: feat(modules/legacy/river): Add mapping to start `qmk-unicode-type` That program communicates with my keyboard and sets a Unicode character. --- modules/by-name/ho/home-manager/module.nix | 2 ++ modules/by-name/ri/river/module.nix | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 modules/by-name/ri/river/module.nix (limited to 'modules/by-name') diff --git a/modules/by-name/ho/home-manager/module.nix b/modules/by-name/ho/home-manager/module.nix index d8b48c1c..f5304170 100644 --- a/modules/by-name/ho/home-manager/module.nix +++ b/modules/by-name/ho/home-manager/module.nix @@ -10,6 +10,7 @@ # TODO: Integrate these <2024-05-22> river_init_lesser, shell_library, + qmk_firmware, # external deps user_js, # modules @@ -43,6 +44,7 @@ in { # bins river_init_lesser shell_library + qmk_firmware # external deps user_js # modules diff --git a/modules/by-name/ri/river/module.nix b/modules/by-name/ri/river/module.nix new file mode 100644 index 00000000..6b9b044a --- /dev/null +++ b/modules/by-name/ri/river/module.nix @@ -0,0 +1,18 @@ +{ + config, + lib, + qmk_firmware, + system, + ... +}: let + cfg = config.soispha.programs.river; +in { + options.soispha.programs.river = { + enable = lib.mkEnableOption "river"; + }; + + config = lib.mkIf cfg.enable { + # TODO: Migrate complete river module <2024-12-30> + services.udev.packages = [qmk_firmware.packages.${system}.qmk_firmware]; + }; +} -- cgit 1.4.1