Add some option types

This commit is contained in:
Eelco Dolstra 2013-10-30 14:18:41 +01:00
parent c7f7ceefd6
commit 4680af6a93
2 changed files with 3 additions and 1 deletions

View file

@ -60,6 +60,7 @@ in
environment = {
systemPackages = mkOption {
type = types.listOf types.path;
default = [];
example = "[ pkgs.icecat3 pkgs.thunderbird ]";
description = ''
@ -74,6 +75,7 @@ in
};
pathsToLink = mkOption {
type = types.listOf types.str;
# Note: We need `/lib' to be among `pathsToLink' for NSS modules
# to work.
default = [];

View file

@ -247,7 +247,7 @@ in
# set at once.
system.boot.loader.id = "grub";
environment.systemPackages = [ grub ];
environment.systemPackages = optional (grub != null) grub;
boot.loader.grub.extraPrepareConfig =
concatStrings (mapAttrsToList (n: v: ''