Merge pull request #12619 from heydojo/sddm-numlock
sddm: add numlock switch
This commit is contained in:
commit
4e309951ee
1 changed files with 11 additions and 0 deletions
|
@ -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 = "";
|
||||
|
|
Loading…
Reference in a new issue