Skip to content

Commit

Permalink
nixos/inputmodule: init module
Browse files Browse the repository at this point in the history
  • Loading branch information
Kitt3120 committed Apr 27, 2024
1 parent 9ea2fa7 commit 7ded89c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
2 changes: 2 additions & 0 deletions nixos/doc/manual/release-notes/rl-2405.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -641,3 +641,5 @@ The pre-existing [services.ankisyncd](#opt-services.ankisyncd.enable) has been m
This enables mandoc to find manual pages in Nix profiles. To set the manual search paths via the `mandoc.conf` configuration file like before, use `documentation.man.mandoc.settings.manpath` instead.

- `grafana-loki` package was updated to 3.0.0 which includes [breaking changes](https://github.com/grafana/loki/releases/tag/v3.0.0)

- Framework input modules, like the LED matrix, are now supported by enabling the `hardware.inputmodule.enable` option. This module installs the `inputmodule-control` CLI tool and adds udev rules for user access.
13 changes: 13 additions & 0 deletions nixos/modules/hardware/inputmodule.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{ config, lib, pkgs, ... }:

with lib;
{
options.hardware.inputmodule.enable = mkEnableOption ''
Enable support for Framework input modules
'';

config = mkIf config.hardware.inputmodule.enable {
environment.systemPackages = [ pkgs.inputmodule-control ];
services.udev.packages = [ pkgs.inputmodule-control ];
};
}
1 change: 1 addition & 0 deletions nixos/modules/module-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
./hardware/hackrf.nix
./hardware/i2c.nix
./hardware/infiniband.nix
./hardware/inputmodule.nix
./hardware/keyboard/qmk.nix
./hardware/keyboard/teck.nix
./hardware/keyboard/uhk.nix
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/in/inputmodule-control/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ in
changelog = "https://github.com/FrameworkComputer/inputmodule-rs/releases/tag/v${ver}";
maintainers = with maintainers; [ Kitt3120 ];
};
}
}

0 comments on commit 7ded89c

Please sign in to comment.