Fediversity/infra/common/options.nix

36 lines
755 B
Nix
Raw Normal View History

{ lib, ... }:
let
inherit (lib) mkOption;
in
{
options = {
procolixVm = {
name = mkOption { };
domain = mkOption { default = "procolix.com"; };
ipv4 = {
address = mkOption { };
prefixLength = mkOption {
default = 24;
};
gateway = mkOption { default = "185.206.232.1"; };
};
ipv6 = {
address = mkOption { };
prefixLength = mkOption { default = 64; };
gateway = mkOption { default = "2a00:51c0:12:1201::1"; };
};
hostPublicKey = mkOption {
description = ''
The host public key of the machine. It is used in particular
to filter Age secrets and only keep the relevant ones.
'';
};
};
};
}