experiment(sway-desktop): enable xwayland and reorg overrides
This commit is contained in:
parent
a550ff143f
commit
a0153e60d5
2 changed files with 20 additions and 3 deletions
|
@ -3,6 +3,7 @@
|
|||
config,
|
||||
lib,
|
||||
packages',
|
||||
repoFlakeInputs',
|
||||
...
|
||||
}: let
|
||||
inherit (import ../lib.nix {}) mkSimpleTrayService;
|
||||
|
@ -33,6 +34,24 @@ in {
|
|||
|
||||
services.gpg-agent.pinentryFlavor = "gnome3";
|
||||
|
||||
nixpkgs.overlays = [
|
||||
(final: prev: {
|
||||
xdg-desktop-portal-wlr' = repoFlakeInputs'.nixpkgs-wayland.packages.xdg-desktop-portal-wlr;
|
||||
xdg-desktop-portal-wlr-gtk' = repoFlakeInputs'.nixpkgs-wayland.packages.xdg-desktop-portal-wlr-gtk;
|
||||
sway-unwrapped = let
|
||||
fixed_wlroots = prev.wlroots_0_16.overrideAttrs (old: {
|
||||
patches = [
|
||||
(builtins.fetchurl {
|
||||
sha256 = "05h9xzicz3fccskg2hbqnw2qh4bm7mwi70c4m00y87w5yhj9gxps";
|
||||
url = "https://gist.githubusercontent.com/steveej/1d8c96ed2fdb3d9ddd0344ca5136073f/raw/d6a097a452b950865b554587db606e718d99c572/fix-wlroots.patch";
|
||||
})
|
||||
];
|
||||
});
|
||||
in
|
||||
prev.sway-unwrapped.override {wlroots_0_16 = fixed_wlroots;};
|
||||
})
|
||||
];
|
||||
|
||||
home.packages = [
|
||||
pkgs.swayidle
|
||||
pkgs.swaylock
|
||||
|
@ -79,7 +98,7 @@ in {
|
|||
enable = true;
|
||||
systemdIntegration = true;
|
||||
# systemd.enable = true;
|
||||
xwayland = false;
|
||||
xwayland = true;
|
||||
|
||||
config = let
|
||||
modifier = "Mod4";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue