phase 2: move modules/ (server-*, desktop-*, shared); drop dotfiles no-rgb (superseded)
This commit is contained in:
@@ -1,43 +0,0 @@
|
|||||||
{ pkgs, lib, ... }:
|
|
||||||
{
|
|
||||||
systemd.services.no-rgb =
|
|
||||||
let
|
|
||||||
no-rgb = (
|
|
||||||
pkgs.writeShellApplication {
|
|
||||||
name = "no-rgb";
|
|
||||||
runtimeInputs = with pkgs; [
|
|
||||||
openrgb
|
|
||||||
coreutils
|
|
||||||
gnugrep
|
|
||||||
];
|
|
||||||
|
|
||||||
text = ''
|
|
||||||
#!/bin/sh
|
|
||||||
set -e
|
|
||||||
|
|
||||||
NUM_DEVICES=$(openrgb --noautoconnect --list-devices | grep -cE '^[0-9]+: ')
|
|
||||||
|
|
||||||
for i in $(seq 0 $((NUM_DEVICES - 1))); do
|
|
||||||
openrgb --noautoconnect --device "$i" --mode direct --color 000000
|
|
||||||
done
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
);
|
|
||||||
in
|
|
||||||
{
|
|
||||||
description = "disable rgb";
|
|
||||||
serviceConfig = {
|
|
||||||
ExecStart = "${lib.getExe no-rgb}";
|
|
||||||
Type = "oneshot";
|
|
||||||
};
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
services.hardware.openrgb.enable = true;
|
|
||||||
services.udev.packages = [ pkgs.openrgb ];
|
|
||||||
hardware.i2c.enable = true;
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
openrgb-with-all-plugins
|
|
||||||
];
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user