diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-12-30 23:39:01 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-12-30 23:39:01 +0100 |
commit | 6ed56174a6d9d87e771a1e7b02d6289ffa21c9e0 (patch) | |
tree | 1002078cc1aa6d0f4f6901ee95b312e485b1ef4d | |
parent | style(treewide): Format (diff) | |
download | nixos-config-6ed56174a6d9d87e771a1e7b02d6289ffa21c9e0.zip |
fix(modules/river): Only activate the moonlander udev rules on tiamat
-rw-r--r-- | hosts/tiamat/default.nix | 5 | ||||
-rw-r--r-- | 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]; }; } |