From 6e4d1540671ed7cf491c1621fc10f91eedc24ef3 Mon Sep 17 00:00:00 2001 From: "Gustavo \"Guz\" L. de Mello" Date: Sun, 5 May 2024 17:45:40 -0300 Subject: [PATCH] feat: hs610 tablet support (FUCKING GOD I'M EXAUSTED) --- hosts/battleship/configuration.nix | 10 +++++++++- hosts/battleship/desktop/default.nix | 4 ++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/hosts/battleship/configuration.nix b/hosts/battleship/configuration.nix index 4c5a5c1..c8af09b 100644 --- a/hosts/battleship/configuration.nix +++ b/hosts/battleship/configuration.nix @@ -17,6 +17,13 @@ profiles.locale.enable = true; + hardware.opentabletdriver.enable = true; + # services.xserver.digimend.enable = true; + services.libinput.enable = true; + services.udev.extraRules = '' + KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0660", GROUP="plugdev" + ''; + programs.hyprland.enable = true; # TEMPFIX: 2024-05-04 https://github.com/NixOS/nixpkgs/issues/308287#issuecomment-2093091892 # After the flake update in 2024-05-04, the screen blacked out after switch @@ -73,7 +80,7 @@ hashedPasswordFile = builtins.toString config.sops.secrets."guz/password".path; home = import ./home.nix; isNormalUser = true; - extraGroups = ["wheel" "networkmanager"]; + extraGroups = ["wheel" "networkmanager" "plugdev"]; }; environment.sessionVariables = { @@ -82,6 +89,7 @@ environment.systemPackages = with pkgs; [ git + libinput ]; hardware.bluetooth.enable = true; diff --git a/hosts/battleship/desktop/default.nix b/hosts/battleship/desktop/default.nix index 84d38b0..84be962 100644 --- a/hosts/battleship/desktop/default.nix +++ b/hosts/battleship/desktop/default.nix @@ -63,6 +63,10 @@ in { "x-scheme-handler/unknown" ]; }; + "pureref" = { + name = "Pureref"; + exec = "${pkgs.pureref}/bin/pureref"; + }; }; programs.hyprland.enable = true;