nix stuff

This commit is contained in:
tristan 2023-12-29 23:35:07 +00:00
parent aadff64368
commit 3b63b8b52b
5 changed files with 56 additions and 23 deletions

14
hardware/ddc.nix Normal file
View file

@ -0,0 +1,14 @@
{pkgs, ...}: {
boot.kernelModules = [
"i2c-dev"
];
services.udev.extraRules = ''
ACTION=="add", SUBSYSTEM=="i2c-dev", ATTR{name}=="AMDGPU DM aux hw bus [0-9]*", TAG+="uaccess"
ACTION=="add", SUBSYSTEM=="i2c-dev", ATTR{name}=="AMDGPU DM i2c hw bus [0-9]*", TAG+="uaccess"
'';
environment.systemPackages = with pkgs; [
ddcutil
];
}