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.

Changed files
+11
nixos
modules
services
x11
display-managers
+11
nixos/modules/services/x11/display-managers/sddm.nix
···
[General]
HaltCommand=${pkgs.systemd}/bin/systemctl poweroff
RebootCommand=${pkgs.systemd}/bin/systemctl reboot
+
${optionalString cfg.autoNumlock ''
+
Numlock=on
+
''}
[Theme]
Current=${cfg.theme}
···
default = [];
description = ''
Extra packages providing themes.
+
'';
+
};
+
+
autoNumlock = mkOption {
+
type = types.bool;
+
default = false;
+
description = ''
+
Enable numlock at login.
'';
};