alien: enable and use i2c and ddcutil
This commit is contained in:
parent
8eb28c23ee
commit
78b9c84e62
2 changed files with 37 additions and 9 deletions
|
|
@ -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
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue