Gnome: move experimental features from home-manager to global
This commit is contained in:
parent
375d8591ab
commit
c03150370c
|
@ -55,7 +55,10 @@ in
|
|||
ui = {
|
||||
desktops.gnome = {
|
||||
enable = true;
|
||||
experimental.tripleBuffering.enable = true;
|
||||
experimental = {
|
||||
tripleBuffering.enable = true;
|
||||
vrr.enable = true;
|
||||
};
|
||||
};
|
||||
flatpak = {
|
||||
# Enable Flatpak support.
|
||||
|
|
|
@ -108,7 +108,10 @@ in
|
|||
};
|
||||
desktops.gnome = {
|
||||
enable = true;
|
||||
experimental.fractionalScaling.enable = true;
|
||||
experimental = {
|
||||
fractionalScaling.enable = true;
|
||||
vrr.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
users = {
|
||||
|
|
|
@ -18,6 +18,7 @@ in
|
|||
experimental = {
|
||||
fractionalScaling.enable = lib.mkEnableOption "Enables fractional scaling.";
|
||||
tripleBuffering.enable = lib.mkEnableOption "Enables dynamic triple buffering for xwayland applications.";
|
||||
vrr.enable = lib.mkEnableOption "Enables variable refresh rate (VRR).";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -35,14 +36,21 @@ in
|
|||
desktopManager.gnome = {
|
||||
enable = true;
|
||||
|
||||
# Enable fractional scaling
|
||||
extraGSettingsOverrides = lib.mkIf cfg.experimental.fractionalScaling.enable ''
|
||||
[org.gnome.mutter]
|
||||
experimental-features=['scale-monitor-framebuffer']
|
||||
# Enable experimental features
|
||||
extraGSettingsOverrides = ''
|
||||
[org.gnome.mutter]
|
||||
experimental-features = ${
|
||||
lib.strings.concatStrings [
|
||||
"[ "
|
||||
(lib.mkIf cfg.experimental.fractionalScaling.enable "'scale-monitor-framebuffer', ").content
|
||||
(lib.mkIf cfg.experimental.vrr.enable "'variable-refresh-rate'").content
|
||||
" ]"
|
||||
]
|
||||
}
|
||||
'';
|
||||
extraGSettingsOverridePackages = lib.mkIf cfg.experimental.fractionalScaling.enable [
|
||||
pkgs.gnome.mutter
|
||||
];
|
||||
extraGSettingsOverridePackages = lib.mkIf (
|
||||
config.services.xserver.desktopManager.gnome.extraGSettingsOverrides != ""
|
||||
) [ pkgs.gnome.mutter ];
|
||||
};
|
||||
displayManager.gdm.enable = true;
|
||||
};
|
||||
|
@ -122,7 +130,6 @@ in
|
|||
gnome = prev.gnome.overrideScope (
|
||||
gnomeFinal: gnomePrev: {
|
||||
mutter = gnomePrev.mutter.overrideAttrs (old: {
|
||||
# Triple buffering
|
||||
src = inputs.gnome-triplebuffering;
|
||||
});
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -5,11 +5,6 @@
|
|||
"org/gnome/mutter" = {
|
||||
edge-tiling = true;
|
||||
workspaces-only-on-primary = false;
|
||||
experimental-features = [
|
||||
"scale-monitor-framebuffer" # Fractional scaling
|
||||
"xwayland-native-scaling" # Related to fractional scaline
|
||||
"variable-refresh-rate" # VRR
|
||||
];
|
||||
};
|
||||
|
||||
"org/gnome/desktop/interface" = {
|
||||
|
|
Loading…
Reference in a new issue