From 9582ea3119537798c2b686a6936f1128ed89a3eb Mon Sep 17 00:00:00 2001 From: Vinzenz Schroeter Date: Sat, 9 Sep 2023 12:39:22 +0200 Subject: [PATCH] enable numlock on start for gnome --- gnome.nix | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/gnome.nix b/gnome.nix index c03bc22..8259f2d 100644 --- a/gnome.nix +++ b/gnome.nix @@ -32,14 +32,27 @@ pkgs.gnome-connections ]; - home-manager.users.vinzenz = { - config, - pkgs, - ... - }: { - home.packages = with pkgs; [ - gnome.gpaste - amberol - ]; + home-manager.users = { + vinzenz = {pkgs, ...}: { + home.packages = with pkgs; [ + gnome.gpaste + amberol + ]; + + dconf.settings = { + "org/gnome/desktop/peripherals/keyboard" = { + numlock-state = true; + }; + }; + }; + + gdm = {...}: { + home.stateVersion = "23.05"; + dconf.settings = { + "org/gnome/desktop/peripherals/keyboard" = { + numlock-state = true; + }; + }; + }; }; }