Clean files + add IP to hosts
This commit is contained in:
parent
ca436c49a3
commit
b6d31e25b9
6 changed files with 140 additions and 110 deletions
31
cluster.nix
31
cluster.nix
|
|
@ -1,6 +1,11 @@
|
|||
{ config, pkgs, lib, ...} @ args:
|
||||
with builtins;
|
||||
with lib;
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}@args:
|
||||
with builtins;
|
||||
with lib;
|
||||
{
|
||||
options.filouterie = with types; {
|
||||
hostName = mkOption {
|
||||
|
|
@ -17,21 +22,21 @@
|
|||
description = "Nodes that are part of this cluster";
|
||||
type = attrsOf (submodule {
|
||||
options = {
|
||||
address = mkOption {
|
||||
address = mkOption {
|
||||
type = str;
|
||||
description = "IP Address in the Wireguard network";
|
||||
};
|
||||
description = "IP Address in the Wireguard network";
|
||||
};
|
||||
|
||||
pubkey = mkOption {
|
||||
pubkey = mkOption {
|
||||
type = str;
|
||||
description = "Wireguard public key";
|
||||
};
|
||||
description = "Wireguard public key";
|
||||
};
|
||||
|
||||
endpoint = mkOption {
|
||||
endpoint = mkOption {
|
||||
type = str;
|
||||
description = "Wireguard endpoint on the public internet";
|
||||
};
|
||||
};
|
||||
description = "Wireguard endpoint on the public internet";
|
||||
};
|
||||
};
|
||||
});
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue