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