diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-10-30 17:37:45 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-10-30 18:47:43 +0100 |
commit | 408b8b5725c3e6fff75aef772da248d3e95ff414 (patch) | |
tree | 692e3b61dbbff85cc97e3becf13a1376dea04a92 /nixos/modules/services/x11/display-managers/slim.nix | |
parent | d882e1966251880240599d3c1b31e060661506ee (diff) | |
download | nixpkgs-408b8b5725c3e6fff75aef772da248d3e95ff414.tar nixpkgs-408b8b5725c3e6fff75aef772da248d3e95ff414.tar.gz nixpkgs-408b8b5725c3e6fff75aef772da248d3e95ff414.tar.bz2 nixpkgs-408b8b5725c3e6fff75aef772da248d3e95ff414.tar.lz nixpkgs-408b8b5725c3e6fff75aef772da248d3e95ff414.tar.xz nixpkgs-408b8b5725c3e6fff75aef772da248d3e95ff414.tar.zst nixpkgs-408b8b5725c3e6fff75aef772da248d3e95ff414.zip |
Add lots of missing option types
Diffstat (limited to 'nixos/modules/services/x11/display-managers/slim.nix')
-rw-r--r-- | nixos/modules/services/x11/display-managers/slim.nix | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/nixos/modules/services/x11/display-managers/slim.nix b/nixos/modules/services/x11/display-managers/slim.nix index 01c9fa96c8c..35834ef3764 100644 --- a/nixos/modules/services/x11/display-managers/slim.nix +++ b/nixos/modules/services/x11/display-managers/slim.nix @@ -16,7 +16,7 @@ let login_cmd exec ${pkgs.stdenv.shell} ${dmcfg.session.script} "%session" halt_cmd ${config.systemd.package}/sbin/shutdown -h now reboot_cmd ${config.systemd.package}/sbin/shutdown -r now - ${optionalString (cfg.defaultUser != "") ("default_user " + cfg.defaultUser)} + ${optionalString (cfg.defaultUser != null) ("default_user " + cfg.defaultUser)} ${optionalString cfg.autoLogin "auto_login yes"} ''; @@ -45,6 +45,7 @@ in services.xserver.displayManager.slim = { enable = mkOption { + type = types.bool; default = config.services.xserver.enable; description = '' Whether to enable SLiM as the display manager. @@ -52,11 +53,14 @@ in }; theme = mkOption { + type = types.nullOr types.path; default = null; - example = pkgs.fetchurl { - url = http://download.berlios.de/slim/slim-wave.tar.gz; - sha256 = "0ndr419i5myzcylvxb89m9grl2xyq6fbnyc3lkd711mzlmnnfxdy"; - }; + example = literalExample '' + pkgs.fetchurl { + url = http://download.berlios.de/slim/slim-wave.tar.gz; + sha256 = "0ndr419i5myzcylvxb89m9grl2xyq6fbnyc3lkd711mzlmnnfxdy"; + } + ''; description = '' The theme for the SLiM login manager. If not specified, SLiM's default theme is used. See <link @@ -66,7 +70,8 @@ in }; defaultUser = mkOption { - default = ""; + type = types.nullOr types.str; + default = null; example = "login"; description = '' The default user to load. If you put a username here you @@ -76,8 +81,8 @@ in }; autoLogin = mkOption { + type = types.bool; default = false; - example = true; description = '' Automatically log in as the default user. ''; |