diff --git a/default.nix b/default.nix index b1b66c9..2e35f40 100644 --- a/default.nix +++ b/default.nix @@ -1,11 +1,24 @@ { - nixosModules.x1e = { lib, ... }: { + nixosModules.x1e = { lib, pkgs, ... }: { imports = [ ./modules/x1e80100.nix ./modules/pd-mapper.nix ]; config = { - nixpkgs.overlays = [ (import ./packages/overlay.nix) ]; + nixpkgs.overlays = [ + (import ./packages/overlay.nix) + (final: prev: { + sway-unwrapped = prev.sway-unwrapped.overrideAttrs (old: { + patches = old.patches ++ [ + # https://github.com/swaywm/sway/pull/8469 + (pkgs.fetchpatch { + url = "https://github.com/swaywm/sway/commit/eee930a4a0d3bf0de2235661227bf1a827edd320.patch"; + hash = "sha256-1aiU4GM/OTqhJElvMecGgNbpuGbVLyhkjwC91K/eMsU="; + }) + ]; + }); + }) + ]; hardware.deviceTree.name = lib.mkDefault "qcom/x1e80100-lenovo-yoga-slim7x.dtb"; };