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:
Ryan Yin authored and ryan4yin | 二花 committed 2026-10-15 22:25:24 +08:00
1 parent 75a88226c9
commit b3700b1d9f
1 file changed
+10 -1
+10 -1
View File
@@ -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 = ''