feat: add razer module for peripherals
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
c6e8ed423c
commit
fc119fb324
2 changed files with 36 additions and 0 deletions
|
@ -10,6 +10,7 @@ in {
|
||||||
../../modules/kmscon.nix
|
../../modules/kmscon.nix
|
||||||
../../modules/printer.nix
|
../../modules/printer.nix
|
||||||
../../modules/proton-bridge.nix
|
../../modules/proton-bridge.nix
|
||||||
|
../../modules/razer.nix
|
||||||
../../modules/sshd.nix
|
../../modules/sshd.nix
|
||||||
../../modules/tailscale.nix
|
../../modules/tailscale.nix
|
||||||
|
|
||||||
|
|
35
modules/razer.nix
Normal file
35
modules/razer.nix
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (config.vars) mainUser;
|
||||||
|
inherit (lib) mkIf;
|
||||||
|
|
||||||
|
cfgHypr =
|
||||||
|
config
|
||||||
|
.home-manager
|
||||||
|
.users
|
||||||
|
.${mainUser}
|
||||||
|
.wayland
|
||||||
|
.windowManager
|
||||||
|
.hyprland;
|
||||||
|
in {
|
||||||
|
hardware.openrazer = {
|
||||||
|
enable = true;
|
||||||
|
users = [mainUser];
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
openrazer-daemon
|
||||||
|
polychromatic
|
||||||
|
];
|
||||||
|
|
||||||
|
# HOME-MANAGER CONFIG
|
||||||
|
home-manager.users.${mainUser} = {
|
||||||
|
wayland.windowManager.hyprland = mkIf (cfgHypr.enable) {
|
||||||
|
settings.exec-once = ["polychromatic-tray-applet"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue