assertions '.msg' doesn't exist => .message
svn path=/nixos/trunk/; revision=33508
This commit is contained in:
parent
bc6ca7944f
commit
de5b437004
@ -14,7 +14,7 @@ in
|
|||||||
|
|
||||||
assertions = mkOption {
|
assertions = mkOption {
|
||||||
default = [];
|
default = [];
|
||||||
example = [ { assertion = false; msg = "you can't enable this for that reason"; } ];
|
example = [ { assertion = false; message = "you can't enable this for that reason"; } ];
|
||||||
merge = pkgs.lib.mergeListOption;
|
merge = pkgs.lib.mergeListOption;
|
||||||
description = ''
|
description = ''
|
||||||
This option allows modules to express conditions that must
|
This option allows modules to express conditions that must
|
||||||
|
@ -35,7 +35,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
assertions = [{ assertion = if cfg.forwardX11 then cfg.setXAuthLocation else true;
|
assertions = [{ assertion = if cfg.forwardX11 then cfg.setXAuthLocation else true;
|
||||||
msg = "cannot enable X11 forwarding without setting xauth location";}];
|
message = "cannot enable X11 forwarding without setting xauth location";}];
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
environment.etc =
|
environment.etc =
|
||||||
|
@ -302,7 +302,7 @@ in
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
assertions = [{ assertion = if cfg.forwardX11 then cfgc.setXAuthLocation else true;
|
assertions = [{ assertion = if cfg.forwardX11 then cfgc.setXAuthLocation else true;
|
||||||
msg = "cannot enable X11 forwarding without setting xauth location";}];
|
message = "cannot enable X11 forwarding without setting xauth location";}];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user