updates
This commit is contained in:
parent
f390e57033
commit
bf03f98a7d
4 changed files with 43 additions and 10 deletions
22
hosts/modules/rgb.nix
Normal file
22
hosts/modules/rgb.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{pkgs, ...}: {
|
||||
services.hardware.openrgb = {
|
||||
enable = true;
|
||||
package = pkgs.openrgb-with-all-plugins;
|
||||
motherboard = "amd";
|
||||
};
|
||||
|
||||
services.udev.packages = [pkgs.openrgb];
|
||||
boot.kernelModules = ["i2c-dev"];
|
||||
hardware.i2c.enable = true;
|
||||
environment.systemPackages = [pkgs.openrgb-with-all-plugins];
|
||||
|
||||
systemd.services.openrgb-server = {
|
||||
description = "OpenRGB Network Server";
|
||||
after = ["network.target"];
|
||||
wantedBy = ["multi-user.target"];
|
||||
serviceConfig = {
|
||||
ExecStart = "${pkgs.openrgb-with-all-plugins}/bin/openrgb --server";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -26,6 +26,7 @@
|
|||
./modules/go.nix
|
||||
./modules/core.nix
|
||||
./modules/libs.nix
|
||||
./modules/rgb.nix
|
||||
];
|
||||
|
||||
services.udisks2.enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue