feat(binto): add logitech mouse
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-04-20 13:42:51 -04:00
parent 354ad470f4
commit 32e5e90b16
5 changed files with 34 additions and 2 deletions

View file

@ -11,6 +11,7 @@ in {
../../modules/kmscon.nix
../../modules/printer.nix
../../modules/razer.nix
../../modules/logitech.nix
../../modules/sshd.nix
../../modules/tailscale.nix

Binary file not shown.

BIN
flake.nix

Binary file not shown.

View file

@ -7,7 +7,7 @@
inherit (osConfig.services.xserver) xkb;
inherit (osConfig.vars) mainMonitor;
nagaProNames = [
miceNames = [
# Wireless
"razer-razer-naga-pro"
@ -17,6 +17,7 @@
"razer-naga-pro-1"
"razer-naga-pro-2"
"razer-naga-pro-3"
"logitech-g502-hero-gaming-mouse"
];
nagaConf = name: {
inherit name;
@ -26,7 +27,7 @@
in {
wayland.windowManager.hyprland = {
settings = {
device = map (d: (nagaConf d)) nagaProNames;
device = map (d: (nagaConf d)) miceNames;
input = {
kb_layout = xkb.layout;

30
modules/logitech.nix Normal file
View file

@ -0,0 +1,30 @@
{
config,
lib,
solaar,
...
}: let
inherit (config.vars) mainUser;
inherit (lib) mkIf;
cfgHypr =
config
.home-manager
.users
.${mainUser}
.wayland
.windowManager
.hyprland;
in {
imports = [
solaar.nixosModules.default
];
programs.solaar.enable = true;
# HOME-MANAGER CONFIG
home-manager.users.${mainUser} = {
wayland.windowManager.hyprland = mkIf (cfgHypr.enable) {
settings.exec-once = ["solaar -w hide -b symbolic"];
};
};
}