git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commitc95bd5d08594ddf26280e7998e7c762aa5f0b01b authorTony White <white.tw.tw@gmail.com> dateTue 26 Jan 2016, 06:17 (11 years ago) parentba0dcb9
1 file changed+11
nixos/modules/services/x11/display-managers/sddm.nix+11
nixos/modules/services/x11/display-managers/sddm.nix+11
@@ -31,6 +31,9 @@ let
3131 [General]
3232 HaltCommand=${pkgs.systemd}/bin/systemctl poweroff
3333 RebootCommand=${pkgs.systemd}/bin/systemctl reboot
34+ ${optionalString cfg.autoNumlock ''
35+ Numlock=on
36+ ''}
3437
3538 [Theme]
3639 Current=${cfg.theme}
@@ -110,6 +113,14 @@ in
110113 '';
111114 };
112115
116+ autoNumlock = mkOption {
117+ type = types.bool;
118+ default = false;
119+ description = ''
120+ Enable numlock at login.
121+ '';
122+ };
123+
113124 setupScript = mkOption {
114125 type = types.str;
115126 default = "";