Fix ddcci
This commit is contained in:
parent
9601ff024b
commit
a3c722e9f8
1 changed files with 11 additions and 21 deletions
|
@ -116,31 +116,21 @@
|
||||||
"i2c-dev" # needed?
|
"i2c-dev" # needed?
|
||||||
];
|
];
|
||||||
|
|
||||||
# https://github.com/NixOS/nixpkgs/issues/328909
|
|
||||||
boot.extraModulePackages = [
|
boot.extraModulePackages = [
|
||||||
# (config.boot.kernelPackages.ddcci-driver.overrideAttrs (old: {
|
|
||||||
# patches = [ ];
|
|
||||||
# src = pkgs.fetchFromGitLab {
|
|
||||||
# owner = "${old.pname}-linux";
|
|
||||||
# repo = "${old.pname}-linux";
|
|
||||||
# rev = "7853cbfc28bc62e87db79f612568b25315397dd0";
|
|
||||||
# hash = "sha256-QImfvYzMqyrRGyrS6I7ERYmteaTijd8ZRnC6+bA9OyM=";
|
|
||||||
# };
|
|
||||||
# }))
|
|
||||||
config.boot.kernelPackages.ddcci-driver
|
config.boot.kernelPackages.ddcci-driver
|
||||||
];
|
];
|
||||||
|
|
||||||
# systemd.services.ddcci = {
|
systemd.services.ddcci = {
|
||||||
# script = ''
|
script = ''
|
||||||
# echo 'ddcci 0x37' > /sys/bus/i2c/devices/i2c-2/new_device
|
echo 'ddcci 0x37' > /sys/bus/i2c/devices/i2c-2/new_device
|
||||||
# '';
|
'';
|
||||||
# wantedBy = [ "graphical.target" ];
|
wantedBy = [ "graphical.target" ];
|
||||||
# restartIfChanged = false;
|
restartIfChanged = false;
|
||||||
# serviceConfig = {
|
serviceConfig = {
|
||||||
# Type = "oneshot";
|
Type = "oneshot";
|
||||||
# RemainAfterExit = true;
|
RemainAfterExit = true;
|
||||||
# };
|
};
|
||||||
# };
|
};
|
||||||
|
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
boot.loader.systemd-boot = {
|
boot.loader.systemd-boot = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue