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,
|
config,
|
||||||
lib,
|
lib,
|
||||||
packages',
|
packages',
|
||||||
|
repoFlakeInputs',
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (import ../lib.nix {}) mkSimpleTrayService;
|
inherit (import ../lib.nix {}) mkSimpleTrayService;
|
||||||
|
@ -33,6 +34,24 @@ in {
|
||||||
|
|
||||||
services.gpg-agent.pinentryFlavor = "gnome3";
|
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 = [
|
home.packages = [
|
||||||
pkgs.swayidle
|
pkgs.swayidle
|
||||||
pkgs.swaylock
|
pkgs.swaylock
|
||||||
|
@ -79,7 +98,7 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
systemdIntegration = true;
|
systemdIntegration = true;
|
||||||
# systemd.enable = true;
|
# systemd.enable = true;
|
||||||
xwayland = false;
|
xwayland = true;
|
||||||
|
|
||||||
config = let
|
config = let
|
||||||
modifier = "Mod4";
|
modifier = "Mod4";
|
||||||
|
|
|
@ -17,8 +17,6 @@ in {
|
||||||
overlays = [
|
overlays = [
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
# FIXME: why are these not effective in for the configuration.nix below?
|
# FIXME: why are these not effective in for the configuration.nix below?
|
||||||
xdg-desktop-portal-wlr' = repoFlake.inputs.nixpkgs-wayland.packages.${system}.xdg-desktop-portal-wlr;
|
|
||||||
xdg-desktop-portal-wlr-gtk' = repoFlake.inputs.nixpkgs-wayland.packages.${system}.xdg-desktop-portal-wlr-gtk;
|
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue