aboutsummaryrefslogtreecommitdiff
path: root/modules/hosts/wooting/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/hosts/wooting/default.nix')
-rw-r--r--modules/hosts/wooting/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/modules/hosts/wooting/default.nix b/modules/hosts/wooting/default.nix
new file mode 100644
index 0000000..b2b78c0
--- /dev/null
+++ b/modules/hosts/wooting/default.nix
@@ -0,0 +1,26 @@
+{
+ config,
+ lib,
+ pkgs,
+ ...
+}:
+
+let
+ inherit (lib) mkOption types mkIf;
+ cfg = config.nx.wooting;
+in
+{
+ options.nx.wooting = {
+ enable = mkOption {
+ description = "Setup wootility, udev rules to discover keyboards";
+ type = types.bool;
+ default = false;
+ };
+ };
+ config = mkIf cfg.enable {
+ services.udev.packages = [ pkgs.wooting-udev-rules ];
+ environment.systemPackages = with pkgs; [
+ wootility
+ ];
+ };
+}