summary refs log tree commit diff
path: root/nixos/modules/services/x11/display-managers/slim.nix
diff options
context:
space:
mode:
authorSuvash Thapaliya <suvash@gmail.com>2014-08-31 03:01:55 +0200
committerSuvash Thapaliya <suvash@gmail.com>2014-08-31 03:21:37 +0200
commit9073a30ceecf750012a22983289ee74cdf0372e2 (patch)
tree00afc5e1b552bea765f745a21ccf8c20b01016b1 /nixos/modules/services/x11/display-managers/slim.nix
parentefdb6ecb0cf5be0c340a2abca949db59e9c4ac79 (diff)
downloadnixpkgs-9073a30ceecf750012a22983289ee74cdf0372e2.tar
nixpkgs-9073a30ceecf750012a22983289ee74cdf0372e2.tar.gz
nixpkgs-9073a30ceecf750012a22983289ee74cdf0372e2.tar.bz2
nixpkgs-9073a30ceecf750012a22983289ee74cdf0372e2.tar.lz
nixpkgs-9073a30ceecf750012a22983289ee74cdf0372e2.tar.xz
nixpkgs-9073a30ceecf750012a22983289ee74cdf0372e2.tar.zst
nixpkgs-9073a30ceecf750012a22983289ee74cdf0372e2.zip
Add `extraConfig` option for SLiM
so that various configuration options can be set without having to
expose every single configurable parameter
Diffstat (limited to 'nixos/modules/services/x11/display-managers/slim.nix')
-rw-r--r--nixos/modules/services/x11/display-managers/slim.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/display-managers/slim.nix b/nixos/modules/services/x11/display-managers/slim.nix
index 9ee4e0dc7cb..c7fbfa85e33 100644
--- a/nixos/modules/services/x11/display-managers/slim.nix
+++ b/nixos/modules/services/x11/display-managers/slim.nix
@@ -19,6 +19,7 @@ let
       reboot_cmd ${config.systemd.package}/sbin/shutdown -r now
       ${optionalString (cfg.defaultUser != null) ("default_user " + cfg.defaultUser)}
       ${optionalString cfg.autoLogin "auto_login yes"}
+      ${cfg.extraConfig}
     '';
 
   # Unpack the SLiM theme, or use the default.
@@ -89,6 +90,15 @@ in
         '';
       };
 
+      extraConfig = mkOption {
+        type = types.lines;
+        default = "";
+        description = ''
+          Extra configuration options for SLiM login manager. Do not
+          add options that can be configured directly.
+        '';
+      };
+
     };
 
   };