switched all mergeOptionString to pkgs.lib.types.string

pierron recommended the use of types.string over mergeOptionString, as
it is superior but might break things.

For my system the change evaluated to the exactly same.

svn path=/nixos/trunk/; revision=31138
This commit is contained in:
Florian Friesdorf 2011-12-29 00:51:35 +00:00
parent 3ebc7727f7
commit eb755d4692
5 changed files with 9 additions and 9 deletions

View file

@ -15,7 +15,7 @@ let
description = "
Script used to initialized user shell environments.
";
merge = mergeStringOption;
type = with pkgs.lib.types; string;
};
};

View file

@ -170,7 +170,7 @@ in
example = ''
KERNEL=="eth*", ATTR{address}=="00:1D:60:B9:6D:4F", NAME="my_fast_network_card"
'';
merge = mergeStringOption;
type = with pkgs.lib.types; string;
description = ''
Additional <command>udev</command> rules. They'll be written
into file <filename>10-local.rules</filename>. Thus they are

View file

@ -171,7 +171,7 @@ in
envVars = mkOption {
internal = true;
default = "";
merge = mergeStringOption;
type = with pkgs.lib.types; string;
description = "
Environment variables used by Nix.
";

View file

@ -37,7 +37,7 @@ let
boot.initrd.preLVMCommands = mkOption {
default = "";
merge = mergeStringOption;
type = with types; string;
description = ''
Shell commands to be executed immediately before lvm discovery.
'';
@ -45,7 +45,7 @@ let
boot.initrd.postDeviceCommands = mkOption {
default = "";
merge = mergeStringOption;
type = with types; string;
description = ''
Shell commands to be executed immediately after stage 1 of the
boot has loaded kernel modules and created device nodes in
@ -55,7 +55,7 @@ let
boot.initrd.postMountCommands = mkOption {
default = "";
merge = mergeStringOption;
type = with types; string;
description = ''
Shell commands to be executed immediately after the stage 1
filesystems have been mounted.
@ -65,7 +65,7 @@ let
boot.initrd.extraUtilsCommands = mkOption {
internal = true;
default = "";
merge = mergeStringOption;
type = with types; string;
description = ''
Shell commands to be executed in the builder of the
extra-utils derivation. This can be used to provide
@ -76,7 +76,7 @@ let
boot.initrd.extraUtilsCommandsTest = mkOption {
internal = true;
default = "";
merge = mergeStringOption;
type = with types; string;
description = ''
Shell commands to be executed in the builder of the
extra-utils derivation after patchelf has done its

View file

@ -8,7 +8,7 @@ let
postBootCommands = pkgs.lib.mkOption {
default = "";
example = "rm -f /var/log/messages";
merge = pkgs.lib.mergeStringOption;
type = with pkgs.lib.types; string;
description = ''
Shell commands to be executed just before Upstart is started.
'';