54 lines
1.2 KiB
Nix
54 lines
1.2 KiB
Nix
{ config, lib, pkgs, modulesPath, inputs, system, ... }:
|
|
|
|
{
|
|
nixpkgs.overlays = [ (final: prev: { sway-unwrapped = prev.sway-unwrapped.overrideAttrs (old: {
|
|
src = pkgs.fetchFromGitHub {
|
|
owner = "WillPower3309";
|
|
repo = "swayfx";
|
|
rev = "7c75b21933215348f28a2c788b174901ef13e267";
|
|
sha256 = "sha256-SlfJ34TR+QdFPnTpyo/UON9RDxS3MfLU9tOabWHkknQ=";
|
|
};
|
|
patches =
|
|
let
|
|
removePatches = [
|
|
"LIBINPUT_CONFIG_ACCEL_PROFILE_CUSTOM.patch"
|
|
];
|
|
in
|
|
builtins.filter
|
|
(patch: !builtins.elem (patch.name or null) removePatches)
|
|
(old.patches or [ ]);
|
|
|
|
});})
|
|
];
|
|
|
|
|
|
programs.sway = {
|
|
enable = true;
|
|
wrapperFeatures = {
|
|
gtk = true;
|
|
base = true;
|
|
};
|
|
|
|
extraPackages = with pkgs; [
|
|
swaylock
|
|
swayidle
|
|
wl-clipboard
|
|
wf-recorder
|
|
waybar
|
|
dmenu
|
|
wmenu
|
|
];
|
|
extraOptions = [
|
|
"--unsupported-gpu"
|
|
];
|
|
extraSessionCommands = ''
|
|
export XDG_CURRENT_DESKTOP=sway
|
|
export SDL_VIDEODRIVER=wayland
|
|
export QT_QPA_PLATFORM=wayland
|
|
export QT_WAYLAND_DISABLE_WINDOWDECORATION="1"
|
|
export _JAVA_AWT_WM_NONREPARENTING=1
|
|
export MOZ_ENABLE_WAYLAND=1
|
|
'';
|
|
};
|
|
}
|