forked from Fediversity/Fediversity
Document the procolixVm
options
This commit is contained in:
parent
4d00635e69
commit
0e6c96a2be
1 changed files with 66 additions and 20 deletions
|
@ -5,31 +5,77 @@ let
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options = {
|
options.procolixVm = {
|
||||||
procolixVm = {
|
name = mkOption {
|
||||||
name = mkOption { };
|
description = ''
|
||||||
domain = mkOption { default = "procolix.com"; };
|
The name of the machine. Most of the time, this will look like `vm02XXX`
|
||||||
|
or `fediYYY`.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
ipv4 = {
|
domain = mkOption {
|
||||||
address = mkOption { };
|
description = ''
|
||||||
prefixLength = mkOption {
|
The domain hosting the machine. Most of the time, this will be either of
|
||||||
default = 24;
|
`procolix.com`, `fediversity.eu` or `abundos.eu`.
|
||||||
};
|
'';
|
||||||
gateway = mkOption { default = "185.206.232.1"; };
|
default = "procolix.com";
|
||||||
};
|
};
|
||||||
|
|
||||||
ipv6 = {
|
ipv4 = {
|
||||||
address = mkOption { };
|
address = mkOption {
|
||||||
prefixLength = mkOption { default = 64; };
|
|
||||||
gateway = mkOption { default = "2a00:51c0:12:1201::1"; };
|
|
||||||
};
|
|
||||||
|
|
||||||
hostPublicKey = mkOption {
|
|
||||||
description = ''
|
description = ''
|
||||||
The host public key of the machine. It is used in particular
|
The IP address of the machine, version 4. It will be injected as a
|
||||||
to filter Age secrets and only keep the relevant ones.
|
value in `networking.interfaces.eth0`, but it will also be used to
|
||||||
|
communicate with the machine via NixOps4.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
prefixLength = mkOption {
|
||||||
|
description = ''
|
||||||
|
The subnet mask of the interface, specified as the number of bits in
|
||||||
|
the prefix.
|
||||||
|
'';
|
||||||
|
default = 24;
|
||||||
|
};
|
||||||
|
|
||||||
|
gateway = mkOption {
|
||||||
|
description = ''
|
||||||
|
The IP address of the default gateway.
|
||||||
|
'';
|
||||||
|
default = "185.206.232.1"; # FIXME: compute default from `address` and `prefixLength`.
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
ipv6 = {
|
||||||
|
address = mkOption {
|
||||||
|
description = ''
|
||||||
|
The IP address of the machine, version 6. It will be injected as a
|
||||||
|
value in `networking.interfaces.eth0`, but it will also be used to
|
||||||
|
communicate with the machine via NixOps4.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
prefixLength = mkOption {
|
||||||
|
description = ''
|
||||||
|
The subnet mask of the interface, specified as the number of bits in
|
||||||
|
the prefix.
|
||||||
|
'';
|
||||||
|
default = 64;
|
||||||
|
};
|
||||||
|
|
||||||
|
gateway = mkOption {
|
||||||
|
description = ''
|
||||||
|
The IP address of the default gateway.
|
||||||
|
'';
|
||||||
|
default = "2a00:51c0:12:1201::1"; # FIXME: compute default from `address` and `prefixLength`.
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
hostPublicKey = mkOption {
|
||||||
|
description = ''
|
||||||
|
The host public key of the machine. It is used to filter Age secrets and
|
||||||
|
only keep the relevant ones, and to feed to NixOps4.
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue