From 9073a30ceecf750012a22983289ee74cdf0372e2 Mon Sep 17 00:00:00 2001 From: Suvash Thapaliya Date: Sun, 31 Aug 2014 03:01:55 +0200 Subject: [PATCH] Add `extraConfig` option for SLiM so that various configuration options can be set without having to expose every single configurable parameter --- nixos/modules/services/x11/display-managers/slim.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nixos/modules/services/x11/display-managers/slim.nix b/nixos/modules/services/x11/display-managers/slim.nix index 9ee4e0dc7cb0..c7fbfa85e335 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. + ''; + }; + }; };