This commit is contained in:
parent
e9821d4cf0
commit
d8a874ffa7
1 changed files with 21 additions and 1 deletions
|
@ -94,7 +94,27 @@
|
||||||
"ddci"
|
"ddci"
|
||||||
"ddcci-backlight"
|
"ddcci-backlight"
|
||||||
];
|
];
|
||||||
boot.extraModulePackages = [config.boot.kernelPackages.ddcci-driver];
|
|
||||||
|
# fix to support linux 6.8
|
||||||
|
# FIXME check https://github.com/NixOS/nixpkgs/pull/297430
|
||||||
|
boot.extraModulePackages = let
|
||||||
|
ddci-driver = config.boot.kernelPackages.ddcci-driver.overrideAttrs (_: {
|
||||||
|
patches = [
|
||||||
|
(pkgs.fetchpatch {
|
||||||
|
url = "https://gitlab.com/Sweenu/ddcci-driver-linux/-/commit/7f851f5fb8fbcd7b3a93aaedff90b27124e17a7e.patch";
|
||||||
|
sha256 = "sha256-Y1ktYaJTd9DtT/mwDqtjt/YasW9cVm0wI43wsQhl7Bg=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
});
|
||||||
|
in [ddci-driver];
|
||||||
|
|
||||||
|
systemd.services.ddcci = {
|
||||||
|
serviceConfig.Type = "oneshot";
|
||||||
|
script = ''
|
||||||
|
sleep 20
|
||||||
|
echo 'ddcci 0x37' > /sys/bus/i2c/devices/i2c-2/new_device
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
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