diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2016-01-29 10:19:48 +0100 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2016-01-29 10:19:48 +0100 |
commit | de0af30716493d647e369f434008a67999ed9e28 (patch) | |
tree | 2fda05ead70be669e4325e0d661aaafd5d04d3c0 /nixos/modules/services/x11/display-managers | |
parent | 2ecb6b4574399cf710f09061357ae59526743a05 (diff) | |
parent | 4f8f5732fc1a24329cbe5f7eb9dcb7599e282a0c (diff) | |
download | nixlib-de0af30716493d647e369f434008a67999ed9e28.tar nixlib-de0af30716493d647e369f434008a67999ed9e28.tar.gz nixlib-de0af30716493d647e369f434008a67999ed9e28.tar.bz2 nixlib-de0af30716493d647e369f434008a67999ed9e28.tar.lz nixlib-de0af30716493d647e369f434008a67999ed9e28.tar.xz nixlib-de0af30716493d647e369f434008a67999ed9e28.tar.zst nixlib-de0af30716493d647e369f434008a67999ed9e28.zip |
Merge branch 'master' into staging
Diffstat (limited to 'nixos/modules/services/x11/display-managers')
-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 bcac83aa738b..4d61afe0eaeb 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 = ""; |