diff options
author | Tony White <white.tw.tw@gmail.com> | 2016-01-26 06:17:32 +0000 |
---|---|---|
committer | Tony White <white.tw.tw@gmail.com> | 2016-01-26 06:17:32 +0000 |
commit | c95bd5d08594ddf26280e7998e7c762aa5f0b01b (patch) | |
tree | b14e2b915c0988413a1e7868d23877ec9377a5e0 /nixos/modules | |
parent | ba0dcb95ad6a11c8fa576f73832d42618279df99 (diff) | |
download | nixpkgs-c95bd5d08594ddf26280e7998e7c762aa5f0b01b.tar nixpkgs-c95bd5d08594ddf26280e7998e7c762aa5f0b01b.tar.gz nixpkgs-c95bd5d08594ddf26280e7998e7c762aa5f0b01b.tar.bz2 nixpkgs-c95bd5d08594ddf26280e7998e7c762aa5f0b01b.tar.lz nixpkgs-c95bd5d08594ddf26280e7998e7c762aa5f0b01b.tar.xz nixpkgs-c95bd5d08594ddf26280e7998e7c762aa5f0b01b.tar.zst nixpkgs-c95bd5d08594ddf26280e7998e7c762aa5f0b01b.zip |
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.
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/services/x11/display-managers/sddm.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/display-managers/sddm.nix b/nixos/modules/services/x11/display-managers/sddm.nix index bcac83aa738..4d61afe0eae 100644 --- a/nixos/modules/services/x11/display-managers/sddm.nix +++ b/nixos/modules/services/x11/display-managers/sddm.nix @@ -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 = ""; |