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.
This commit is contained in:
parent
ba0dcb95ad
commit
c95bd5d085
@ -31,6 +31,9 @@ let
|
|||||||
[General]
|
[General]
|
||||||
HaltCommand=${pkgs.systemd}/bin/systemctl poweroff
|
HaltCommand=${pkgs.systemd}/bin/systemctl poweroff
|
||||||
RebootCommand=${pkgs.systemd}/bin/systemctl reboot
|
RebootCommand=${pkgs.systemd}/bin/systemctl reboot
|
||||||
|
${optionalString cfg.autoNumlock ''
|
||||||
|
Numlock=on
|
||||||
|
''}
|
||||||
|
|
||||||
[Theme]
|
[Theme]
|
||||||
Current=${cfg.theme}
|
Current=${cfg.theme}
|
||||||
@ -110,6 +113,14 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
autoNumlock = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
description = ''
|
||||||
|
Enable numlock at login.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
setupScript = mkOption {
|
setupScript = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "";
|
default = "";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user