From 1ffe166e56b9aefc108ff260016d15c4f7289875 Mon Sep 17 00:00:00 2001 From: GHOSCHT <31184695+GHOSCHT@users.noreply.github.com> Date: Mon, 2 Dec 2024 12:43:57 +0100 Subject: [PATCH] Fix nix warnings --- hosts/common/global/locale.nix | 2 +- hosts/common/optional/desktop/gnome.nix | 2 +- hosts/common/optional/desktop/x11.nix | 5 +++-- hosts/common/optional/printing.nix | 3 ++- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/hosts/common/global/locale.nix b/hosts/common/global/locale.nix index 624eaa7..c5f0f2d 100644 --- a/hosts/common/global/locale.nix +++ b/hosts/common/global/locale.nix @@ -16,5 +16,5 @@ }; }; console.keyMap = "de"; - services.xserver.layout = "de"; + services.xserver.xkb.layout = "de"; } diff --git a/hosts/common/optional/desktop/gnome.nix b/hosts/common/optional/desktop/gnome.nix index 8005cc6..6c06551 100644 --- a/hosts/common/optional/desktop/gnome.nix +++ b/hosts/common/optional/desktop/gnome.nix @@ -7,11 +7,11 @@ imports = [./global.nix ./x11.nix ./wayland.nix]; services = { + libinput.enable = true; xserver = { desktopManager.gnome = { enable = true; }; - libinput.enable = true; modules = [pkgs.xf86_input_wacom]; wacom.enable = true; }; diff --git a/hosts/common/optional/desktop/x11.nix b/hosts/common/optional/desktop/x11.nix index 57c15e8..35b6fcd 100644 --- a/hosts/common/optional/desktop/x11.nix +++ b/hosts/common/optional/desktop/x11.nix @@ -5,11 +5,12 @@ ... }: { services = { + libinput.enable = true; # Enable touchpad support + libinput.touchpad.naturalScrolling = true; + # Enable the X11 windowing system. xserver = { enable = true; - # Enable touchpad support - libinput.enable = true; # Remove xterm terminal excludePackages = with pkgs; [xterm]; modules = [pkgs.xf86_input_wacom]; diff --git a/hosts/common/optional/printing.nix b/hosts/common/optional/printing.nix index b58fb83..78ce3f3 100644 --- a/hosts/common/optional/printing.nix +++ b/hosts/common/optional/printing.nix @@ -9,7 +9,8 @@ printing.enable = true; avahi = { enable = true; - nssmdns = true; + nssmdns4 = true; + nssmdns6 = true; # for a WiFi printer openFirewall = true; };