alien: enable and use i2c and ddcutil

This commit is contained in:
Sean Kovacs 2025-12-15 15:25:15 -05:00
commit 8535435805
Signed by: sckova
GPG key ID: 00F325187C68651A
2 changed files with 37 additions and 9 deletions

View file

@ -10,6 +10,18 @@
{
networking.hostName = "alien";
environment.systemPackages = with pkgs; [
pkgs.ddcutil
pkgs.mangohud
];
# enable ddcutil
users.users.sckova.extraGroups = [ "i2c" ];
boot.initrd.kernelModules = [ "i2c-dev" ];
services.udev.extraRules = ''
KERNEL=="i2c-[0-9]*", GROUP="i2c", MODE="0660"
'';
boot.binfmt.emulatedSystems = [
"aarch64-linux"
"riscv64-linux"
@ -62,7 +74,6 @@
};
environment = {
systemPackages = [ pkgs.mangohud ];
loginShellInit = ''
[[ "$(tty)" = "/dev/tty1" ]] && ./gs.sh
'';