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 80 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

View file

@ -204,6 +204,22 @@
"type": "github"
}
},
"flake-compat_2": {
"flake": false,
"locked": {
"lastModified": 1696426674,
"narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-parts": {
"inputs": {
"nixpkgs-lib": [
@ -1486,6 +1502,7 @@
"pointer-event-src": "pointer-event-src",
"pokemon-colorscripts-src": "pokemon-colorscripts-src",
"secrets": "secrets",
"solaar": "solaar",
"subsync": "subsync",
"touch-gestures-src": "touch-gestures-src",
"trash-d-src": "trash-d-src",
@ -1530,6 +1547,27 @@
"url": "ssh://git@git.nelim.org/matt1432/nixos-secrets"
}
},
"solaar": {
"inputs": {
"flake-compat": "flake-compat_2",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1713515557,
"narHash": "sha256-n9I+GyQP19CsXPAOrAFOMTn8n4UIuzt0a1k5XfiVFQI=",
"owner": "Svenum",
"repo": "Solaar-Flake",
"rev": "c0dfdaa082ed084dd08a7f09c48f783e4fddccbe",
"type": "github"
},
"original": {
"owner": "Svenum",
"repo": "Solaar-Flake",
"type": "github"
}
},
"sops-nix": {
"inputs": {
"nixpkgs": "nixpkgs_9",

View file

@ -252,6 +252,14 @@
inputs.hyprland.follows = "hyprland";
};
solaar = {
type = "github";
owner = "Svenum";
repo = "Solaar-Flake";
inputs.nixpkgs.follows = "nixpkgs";
};
ags = {
type = "github";
owner = "Aylur";

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"];
};
};
}