From c95bd5d08594ddf26280e7998e7c762aa5f0b01b Mon Sep 17 00:00:00 2001 From: Tony White Date: Tue, 26 Jan 2016 06:17:32 +0000 Subject: [PATCH] sddm: add numlock switch - added numlock on boot switch - simply add : services.xserver.displayManager.sddm.autoNumlock = true; to configuration.nix and sddm will start with numlock enabled. --- nixos/modules/services/x11/display-managers/sddm.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/nixos/modules/services/x11/display-managers/sddm.nix b/nixos/modules/services/x11/display-managers/sddm.nix index bcac83aa738..4d61afe0eae 100644 --- a/nixos/modules/services/x11/display-managers/sddm.nix +++ b/nixos/modules/services/x11/display-managers/sddm.nix @@ -31,6 +31,9 @@ let [General] HaltCommand=${pkgs.systemd}/bin/systemctl poweroff RebootCommand=${pkgs.systemd}/bin/systemctl reboot + ${optionalString cfg.autoNumlock '' + Numlock=on + ''} [Theme] Current=${cfg.theme} @@ -110,6 +113,14 @@ in ''; }; + autoNumlock = mkOption { + type = types.bool; + default = false; + description = '' + Enable numlock at login. + ''; + }; + setupScript = mkOption { type = types.str; default = "";