mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 11:44:07 +00:00
* Add some options that are useful in Charon network specifications.
svn path=/nixos/trunk/; revision=30006
This commit is contained in:
parent
a82bfec343
commit
e4a6ea0632
@ -146,6 +146,28 @@ let cfg = config.deployment; in
|
||||
'';
|
||||
};
|
||||
|
||||
# Computed options useful for referring to other machines in
|
||||
# network specifications.
|
||||
|
||||
networking.privateIPv4 = mkOption {
|
||||
example = "10.1.2.3";
|
||||
type = types.uniq types.string;
|
||||
description = ''
|
||||
IPv4 address of this machine within in the logical network.
|
||||
This address can be used by other machines in the logical
|
||||
network to reach this machine. However, it need not be
|
||||
visible to the outside (i.e., publicly routable).
|
||||
'';
|
||||
};
|
||||
|
||||
networking.publicIPv4 = mkOption {
|
||||
example = "198.51.100.123";
|
||||
type = types.uniq types.string;
|
||||
description = ''
|
||||
Publicly routable IPv4 address of this machine.
|
||||
'';
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
|
||||
@ -163,7 +185,6 @@ let cfg = config.deployment; in
|
||||
# throw "I don't know an AMI for zone ‘${cfg.ec2.zone}’ and platform type ‘${config.nixpkgs.system}’"
|
||||
"");
|
||||
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user