From cbc16e7f07b1ec31697504f0903e4fa1f8748a69 Mon Sep 17 00:00:00 2001 From: iFargle Date: Wed, 27 Dec 2023 18:27:55 +0900 Subject: [PATCH] Add openrgb and openrazer to desktop --- nixos/common/services/openrazer.nix | 7 +++++++ nixos/hosts/nixos-desktop/default.nix | 4 ++++ 2 files changed, 11 insertions(+) create mode 100644 nixos/common/services/openrazer.nix diff --git a/nixos/common/services/openrazer.nix b/nixos/common/services/openrazer.nix new file mode 100644 index 00000000..d3776169 --- /dev/null +++ b/nixos/common/services/openrazer.nix @@ -0,0 +1,7 @@ +{ pkgs, username, ... }: { + hardware.openrazer = { + enable = true; + users = [ "${username}" ]; + devicesOffOnScreensaver = true; + }; +} \ No newline at end of file diff --git a/nixos/hosts/nixos-desktop/default.nix b/nixos/hosts/nixos-desktop/default.nix index 077fccc4..e4152552 100644 --- a/nixos/hosts/nixos-desktop/default.nix +++ b/nixos/hosts/nixos-desktop/default.nix @@ -3,6 +3,7 @@ ./disks.nix ../../common/modules/secureboot.nix ../../common/modules/ssh-luks.nix + ../../common/services/openrazer.nix ]; # steam, nvidia-x11, etc nixpkgs.config.allowUnfree = true; @@ -52,5 +53,8 @@ pkgs.wineWowPackages.stable pkgs.winetricks pkgs.wineWowPackages.waylandFull + + # RGB stuff + pkgs.openrgb-with-all-plugins ]; }