From 6ed56174a6d9d87e771a1e7b02d6289ffa21c9e0 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Mon, 30 Dec 2024 23:39:01 +0100 Subject: fix(modules/river): Only activate the moonlander udev rules on tiamat --- hosts/tiamat/default.nix | 5 +++++ modules/by-name/ri/river/module.nix | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/hosts/tiamat/default.nix b/hosts/tiamat/default.nix index 3e531c7d..4e76675c 100644 --- a/hosts/tiamat/default.nix +++ b/hosts/tiamat/default.nix @@ -21,6 +21,11 @@ }; unison.foreign.address = "apzu.fritz.box"; }; + programs = { + river = { + unicodeInput.enable = true; + }; + }; locale = { enable = true; keyMap = "us"; diff --git a/modules/by-name/ri/river/module.nix b/modules/by-name/ri/river/module.nix index 813ed188..a059da4d 100644 --- a/modules/by-name/ri/river/module.nix +++ b/modules/by-name/ri/river/module.nix @@ -9,10 +9,13 @@ in { options.soispha.programs.river = { enable = lib.mkEnableOption "river"; + unicodeInput = { + enable = lib.mkEnableOption "udev rules for rawhid based unicode input"; + }; }; config = lib.mkIf cfg.enable { - # TODO: Migrate complete river module <2024-12-30> - services.udev.packages = [qmk_firmware.packages.${system}.qmk_unicode_type]; + # TODO: Migrate the complete river module <2024-12-30> + services.udev.packages = lib.mkIf cfg.unicodeInput.enable [qmk_firmware.packages.${system}.qmk_unicode_type]; }; } -- cgit 1.4.1