summary refs log tree commit diff
path: root/nixos/modules/services/x11/display-managers
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2016-01-29 10:19:48 +0100
committerVladimír Čunát <vcunat@gmail.com>2016-01-29 10:19:48 +0100
commitde0af30716493d647e369f434008a67999ed9e28 (patch)
tree2fda05ead70be669e4325e0d661aaafd5d04d3c0 /nixos/modules/services/x11/display-managers
parent2ecb6b4574399cf710f09061357ae59526743a05 (diff)
parent4f8f5732fc1a24329cbe5f7eb9dcb7599e282a0c (diff)
downloadnixlib-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.nix11
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 = "";