mirror of
https://github.com/nix-community/home-manager
synced 2024-12-21 01:09:47 +01:00
hyprland: remove xwayland.hidpi (#4302)
Remove xwayland.hidpi option, since we're dropping HiDPI XWayland patches support, opting to use the builtin xwayland:force_zero_scaling option instead. It is described in more detail in https://wiki.hyprland.org/ Configuring/XWayland.
This commit is contained in:
parent
c3ab5ea047
commit
88067b9b14
1 changed files with 7 additions and 12 deletions
|
@ -11,12 +11,16 @@ in {
|
|||
imports = [
|
||||
(lib.mkRemovedOptionModule # \
|
||||
[ "wayland" "windowManager" "hyprland" "disableAutoreload" ]
|
||||
"Autoreloading now always happen")
|
||||
"Autoreloading now always happens")
|
||||
|
||||
(lib.mkRemovedOptionModule # \
|
||||
[ "wayland" "windowManager" "hyprland" "recommendedEnvironment" ]
|
||||
"Recommended environment variables are now always set")
|
||||
|
||||
(lib.mkRemovedOptionModule # \
|
||||
[ "wayland" "windowManager" "hyprland" "xwayland" "hidpi" ]
|
||||
"HiDPI patches are deprecated. Refer to https://wiki.hyprland.org/Configuring/XWayland")
|
||||
|
||||
(lib.mkRenamedOptionModule # \
|
||||
[ "wayland" "windowManager" "hyprland" "nvidiaPatches" ] # \
|
||||
[ "wayland" "windowManager" "hyprland" "enableNvidiaPatches" ])
|
||||
|
@ -32,8 +36,7 @@ in {
|
|||
readOnly = true;
|
||||
default = cfg.package.override {
|
||||
enableXWayland = cfg.xwayland.enable;
|
||||
hidpiXWayland = cfg.xwayland.hidpi;
|
||||
nvidiaPatches = cfg.enableNvidiaPatches;
|
||||
enableNvidiaPatches = cfg.enableNvidiaPatches;
|
||||
};
|
||||
defaultText = lib.literalMD
|
||||
"`wayland.windowManager.hyprland.package` with applied configuration";
|
||||
|
@ -66,15 +69,7 @@ in {
|
|||
'';
|
||||
};
|
||||
|
||||
xwayland = {
|
||||
enable = lib.mkEnableOption "XWayland" // { default = true; };
|
||||
hidpi = lib.mkEnableOption null // {
|
||||
description = ''
|
||||
Enable HiDPI XWayland, based on [XWayland MR 733](https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/733).
|
||||
See <https://wiki.hyprland.org/Nix/Options-Overrides/#xwayland-hidpi> for more info.
|
||||
'';
|
||||
};
|
||||
};
|
||||
xwayland.enable = lib.mkEnableOption "XWayland" // { default = true; };
|
||||
|
||||
enableNvidiaPatches =
|
||||
lib.mkEnableOption "patching wlroots for better Nvidia support";
|
||||
|
|
Loading…
Reference in a new issue