gnome: enable variable refresh rate

This commit is contained in:
Leonardo Eugênio 2024-05-31 23:10:41 -03:00
parent 1e204760c4
commit 103ac20f1e

View file

@ -1,13 +1,18 @@
# Edit this configuration file to define what should be installed on { pkgs, ... }:
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{ {
# Enable the X11 windowing system. services.xserver = {
services.xserver.enable = true; enable = true;
# Enable the GNOME Desktop Environment. desktopManager.gnome = {
services.xserver.displayManager.gdm.enable = true; enable = true;
services.xserver.desktopManager.gnome.enable = true; # Enable VRR (Variable Refresh Rate)
extraGSettingsOverridePackages = with pkgs; [ gnome.mutter ];
extraGSettingsOverrides = ''
[org.gnome.mutter]
experimental-features=['variable-refresh-rate', 'scale-monitor-framebuffer']
'';
};
displayManager.gdm.enable = true;
};
# Workaround for https://github.com/NixOS/nixpkgs/issues/103746 # Workaround for https://github.com/NixOS/nixpkgs/issues/103746
systemd.services."getty@tty1".enable = false; systemd.services."getty@tty1".enable = false;