I have been trying to get natural scrolling to work but the services.xserver.libinput.naturalScrolling
seems to have no effect.
How does one enable natural scrolling?
I have been trying to get natural scrolling to work but the services.xserver.libinput.naturalScrolling
seems to have no effect.
How does one enable natural scrolling?
Unfortunately not all desktop environments will pick this setting up. In particular in Gnome you might need to set this manually:
dconf write /org/gnome/desktop/peripherals/touchpad/natural-scroll true
dconf write /org/gnome/desktop/peripherals/mouse/natural-scroll true
Hi @hedning, it’s been five years but I’m new to Linux as a whole and would appreciate some more details. How might I update configuration.nix to run this automatically on startup? Or does it still have to be manually set for each PC? Thanks
Hello, and welcome! dconf settings can be declared in config. These links might help:
Thanks @dtannock, super helpful. Just curious, do these changes still need flakes or is that a relic of 2022? Being new to Linux, I went with the standard NixOS + GNOME setup, I know flakes is experimental so I’d like to avoid it if I can
Got it working without flakes!
configuration.nix
:# /etc/nixos/configuration.nix
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
<home-manager/nixos>
];
# ...
users.users.markw = {
isNormalUser = true;
description = "Mark Wiemer";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [
# thunderbird
];
};
home-manager.users.markw = { pkgs, ... }: {
# The state version is required and should stay at the version you
# originally installed.
home.stateVersion = "24.11"; # had to put this at the top for some reason
dconf.settings = {
"org/gnome/desktop/peripherals/mouse" = { natural-scroll = true; };
"org/gnome/desktop/interface" = {
color-scheme = "prefer-dark";
};
};
};
sudo nixos-rebuild switch