mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:36 +01:00
feat(ai): control external monitors over DDC/CI
The module loads i2c-dev and grants /dev/i2c-* to the i2c group and locally logged-in users, so ddcutil no longer needs root. Assisted-by: DeepSeek Harness (deepseek-flash)
This commit is contained in:
1 parent
75a88226c9
commit
b3700b1d9f
1 file changed
+10
-1
@@ -81,7 +81,16 @@ in
|
||||
services.smartd.enable = true;
|
||||
|
||||
# QEMU/KVM(HostCpuOnly) for local VMs.
|
||||
environment.systemPackages = [ pkgs.qemu_kvm ];
|
||||
environment.systemPackages = [
|
||||
pkgs.qemu_kvm
|
||||
pkgs.ddcutil # external monitor control over DDC/CI (brightness, input source)
|
||||
];
|
||||
|
||||
# The external monitors answer DDC/CI on /dev/i2c-*: this loads i2c-dev and installs the
|
||||
# udev rules that grant the i2c group and locally logged-in users access, so `ddcutil`
|
||||
# works without sudo.
|
||||
# https://github.com/ryan4yin/nix-config/issues/447
|
||||
hardware.i2c.enable = true;
|
||||
|
||||
# Re-evaluate after the Insta360 Link firmware or the kernel's uvcvideo changes.
|
||||
powerManagement.resumeCommands = ''
|
||||
|
||||
Reference in new issue
Block a user