Gnome: replace fractional scaling method and re-enable for Shura
This commit is contained in:
parent
df98a718a3
commit
375d8591ab
|
@ -55,7 +55,7 @@ in
|
||||||
ui = {
|
ui = {
|
||||||
desktops.gnome = {
|
desktops.gnome = {
|
||||||
enable = true;
|
enable = true;
|
||||||
experimentalFeatures.enable = true;
|
experimental.tripleBuffering.enable = true;
|
||||||
};
|
};
|
||||||
flatpak = {
|
flatpak = {
|
||||||
# Enable Flatpak support.
|
# Enable Flatpak support.
|
||||||
|
|
|
@ -108,7 +108,7 @@ in
|
||||||
};
|
};
|
||||||
desktops.gnome = {
|
desktops.gnome = {
|
||||||
enable = true;
|
enable = true;
|
||||||
experimentalFeatures.enable = true;
|
experimental.fractionalScaling.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
users = {
|
users = {
|
||||||
|
|
|
@ -15,7 +15,10 @@ in
|
||||||
options = {
|
options = {
|
||||||
aux.system.ui.desktops.gnome = {
|
aux.system.ui.desktops.gnome = {
|
||||||
enable = lib.mkEnableOption "Enables the Gnome Desktop Environment.";
|
enable = lib.mkEnableOption "Enables the Gnome Desktop Environment.";
|
||||||
experimentalFeatures.enable = lib.mkEnableOption "Enables dynamic triple buffering and fractional scaling for xwayland applications.";
|
experimental = {
|
||||||
|
fractionalScaling.enable = lib.mkEnableOption "Enables fractional scaling.";
|
||||||
|
tripleBuffering.enable = lib.mkEnableOption "Enables dynamic triple buffering for xwayland applications.";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -29,7 +32,18 @@ in
|
||||||
excludePackages = [ pkgs.xterm ];
|
excludePackages = [ pkgs.xterm ];
|
||||||
|
|
||||||
# Enable Gnome
|
# Enable Gnome
|
||||||
desktopManager.gnome.enable = true;
|
desktopManager.gnome = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
# Enable fractional scaling
|
||||||
|
extraGSettingsOverrides = lib.mkIf cfg.experimental.fractionalScaling.enable ''
|
||||||
|
[org.gnome.mutter]
|
||||||
|
experimental-features=['scale-monitor-framebuffer']
|
||||||
|
'';
|
||||||
|
extraGSettingsOverridePackages = lib.mkIf cfg.experimental.fractionalScaling.enable [
|
||||||
|
pkgs.gnome.mutter
|
||||||
|
];
|
||||||
|
};
|
||||||
displayManager.gdm.enable = true;
|
displayManager.gdm.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -103,15 +117,13 @@ in
|
||||||
style = "adwaita-dark";
|
style = "adwaita-dark";
|
||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs.overlays = lib.mkIf cfg.experimentalFeatures.enable [
|
nixpkgs.overlays = lib.mkIf cfg.experimental.tripleBuffering.enable [
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
gnome = prev.gnome.overrideScope (
|
gnome = prev.gnome.overrideScope (
|
||||||
gnomeFinal: gnomePrev: {
|
gnomeFinal: gnomePrev: {
|
||||||
mutter = gnomePrev.mutter.overrideAttrs (old: {
|
mutter = gnomePrev.mutter.overrideAttrs (old: {
|
||||||
# Triple buffering
|
# Triple buffering
|
||||||
src = inputs.gnome-triplebuffering;
|
src = inputs.gnome-triplebuffering;
|
||||||
# Scaling patch sourced from https://aur.archlinux.org/packages/mutter-xwayland-scaling
|
|
||||||
patches = [ ./patches/gnome-mutter-xwayland-scaling.patch ];
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue