44 lines
854 B
Nix
44 lines
854 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
config,
|
|
...
|
|
}: {
|
|
config = lib.mkIf config.local.profiles.gaming.enable {
|
|
hardware.uni-sync = {
|
|
enable = true;
|
|
devices = [
|
|
{
|
|
device_id = "VID:3314/PID:41218/SN:6243168001";
|
|
sync_rgb = true;
|
|
channels = [
|
|
{
|
|
mode = "Manual";
|
|
speed = 60;
|
|
}
|
|
{
|
|
mode = "Manual";
|
|
speed = 60;
|
|
}
|
|
{
|
|
mode = "Manual";
|
|
speed = 60;
|
|
}
|
|
{
|
|
mode = "Manual";
|
|
speed = 60;
|
|
}
|
|
];
|
|
}
|
|
];
|
|
};
|
|
|
|
systemd.services.uni-sync = {
|
|
enable = true;
|
|
serviceConfig = {
|
|
ExecStart = "${pkgs.uni-sync}/bin/uni-sync";
|
|
};
|
|
wantedBy = ["multi-user.target"];
|
|
};
|
|
};
|
|
}
|