feat(binto): add logitech mouse
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
354ad470f4
commit
32e5e90b16
5 changed files with 34 additions and 2 deletions
|
@ -11,6 +11,7 @@ in {
|
||||||
../../modules/kmscon.nix
|
../../modules/kmscon.nix
|
||||||
../../modules/printer.nix
|
../../modules/printer.nix
|
||||||
../../modules/razer.nix
|
../../modules/razer.nix
|
||||||
|
../../modules/logitech.nix
|
||||||
../../modules/sshd.nix
|
../../modules/sshd.nix
|
||||||
../../modules/tailscale.nix
|
../../modules/tailscale.nix
|
||||||
|
|
||||||
|
|
BIN
flake.lock
BIN
flake.lock
Binary file not shown.
BIN
flake.nix
BIN
flake.nix
Binary file not shown.
|
@ -7,7 +7,7 @@
|
||||||
inherit (osConfig.services.xserver) xkb;
|
inherit (osConfig.services.xserver) xkb;
|
||||||
inherit (osConfig.vars) mainMonitor;
|
inherit (osConfig.vars) mainMonitor;
|
||||||
|
|
||||||
nagaProNames = [
|
miceNames = [
|
||||||
# Wireless
|
# Wireless
|
||||||
"razer-razer-naga-pro"
|
"razer-razer-naga-pro"
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@
|
||||||
"razer-naga-pro-1"
|
"razer-naga-pro-1"
|
||||||
"razer-naga-pro-2"
|
"razer-naga-pro-2"
|
||||||
"razer-naga-pro-3"
|
"razer-naga-pro-3"
|
||||||
|
"logitech-g502-hero-gaming-mouse"
|
||||||
];
|
];
|
||||||
nagaConf = name: {
|
nagaConf = name: {
|
||||||
inherit name;
|
inherit name;
|
||||||
|
@ -26,7 +27,7 @@
|
||||||
in {
|
in {
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
settings = {
|
settings = {
|
||||||
device = map (d: (nagaConf d)) nagaProNames;
|
device = map (d: (nagaConf d)) miceNames;
|
||||||
|
|
||||||
input = {
|
input = {
|
||||||
kb_layout = xkb.layout;
|
kb_layout = xkb.layout;
|
||||||
|
|
30
modules/logitech.nix
Normal file
30
modules/logitech.nix
Normal 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"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue