diff --git a/flake.lock b/flake.lock index 3d32763..2e9450b 100644 --- a/flake.lock +++ b/flake.lock @@ -81,11 +81,11 @@ ] }, "locked": { - "lastModified": 1714959124, - "narHash": "sha256-oYmauPDpSgWjY9hvzwd815igGfP8Ds5Bk6bTo5JrBRk=", + "lastModified": 1715070411, + "narHash": "sha256-5CNvkH0Nf7yMwgKhjUNg/lUK40C7DXB4zKOuA2jVO90=", "owner": "nix-community", "repo": "disko", - "rev": "e1b3ae2b4ebc3c7b83154b9361e3d154e64e362d", + "rev": "4677f6c53482a8b01ee93957e3bdd569d51261d6", "type": "github" }, "original": { @@ -668,11 +668,11 @@ ] }, "locked": { - "lastModified": 1714981474, - "narHash": "sha256-b3/U21CJjCjJKmA9WqUbZGZgCvospO3ArOUTgJugkOY=", + "lastModified": 1715077503, + "narHash": "sha256-AfHQshzLQfUqk/efMtdebHaQHqVntCMjhymQzVFLes0=", "owner": "nix-community", "repo": "home-manager", - "rev": "6ebe7be2e67be7b9b54d61ce5704f6fb466c536f", + "rev": "6e277d9566de9976f47228dd8c580b97488734d4", "type": "github" }, "original": { @@ -853,11 +853,11 @@ }, "nixosHardware": { "locked": { - "lastModified": 1714984131, - "narHash": "sha256-kjIvFbbKb6RGIJyOgcF+BBWHNzhNSNqRTxX/SkrkRno=", + "lastModified": 1715010655, + "narHash": "sha256-FmdhvR/hgBkPDvIv/HOEIQsSMaVXh8wvTrnep8dF3Jc=", "owner": "NixOS", "repo": "nixos-hardware", - "rev": "e148ccbecbd2fe4dc4768fba67f6db828466ad06", + "rev": "d1659c9eb8af718118fb4bbe2c86797c8b8623eb", "type": "github" }, "original": { @@ -1044,11 +1044,11 @@ }, "nixpkgsStable": { "locked": { - "lastModified": 1714782413, - "narHash": "sha256-tbg0MEuKaPcUrnmGCu4xiY5F+7LW2+ECPKVAJd2HLwM=", + "lastModified": 1714971268, + "narHash": "sha256-IKwMSwHj9+ec660l+I4tki/1NRoeGpyA2GdtdYpAgEw=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "651b4702e27a388f0f18e1b970534162dec09aff", + "rev": "27c13997bf450a01219899f5a83bd6ffbfc70d3c", "type": "github" }, "original": { @@ -1289,11 +1289,11 @@ }, "nur": { "locked": { - "lastModified": 1715000276, - "narHash": "sha256-KOOmBuUjRfFklNkezaks0uYJ8dtI4T+9U213scQCKLA=", + "lastModified": 1715085636, + "narHash": "sha256-pIZ5IwKX/UFdrO6qIKc7siCgjFhBM+q2uPZIDEFu9Ys=", "owner": "nix-community", "repo": "NUR", - "rev": "532ff1c86747cae69dc6a8868e8a82d13cf662ab", + "rev": "4cfdb90950c4d47f1c1d38ba1d1a0a945024bd00", "type": "github" }, "original": { diff --git a/hosts/picard/default.nix b/hosts/picard/default.nix index 82918d7..624d03f 100644 --- a/hosts/picard/default.nix +++ b/hosts/picard/default.nix @@ -94,7 +94,27 @@ "ddci" "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.systemd-boot = {