git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #12619 from heydojo/sddm-numlock

sddm: add numlock switch

commit4e309951ee4d0e70a1f88e3934474b192dc64f56 authorNikolay Amiantov <ab@fmap.me> dateTue 26 Jan 2016, 13:51 (11 years ago) parente8fc1eac95bd5d
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 = "";