forked from Deuxfleurs/nixcfg
fake update spoutnik config
This commit is contained in:
parent
10d370491e
commit
2685970256
1 changed files with 5 additions and 15 deletions
|
@ -12,22 +12,12 @@
|
||||||
networking.hostName = "spoutnik";
|
networking.hostName = "spoutnik";
|
||||||
services.openssh.ports = [ 220 ];
|
services.openssh.ports = [ 220 ];
|
||||||
|
|
||||||
networking.interfaces.enp0s25.useDHCP = false;
|
deuxfleurs.network_interface = "enp0s25";
|
||||||
networking.interfaces.enp0s25.ipv4.addresses = [
|
deuxfleurs.lan_ip = "192.168.0.40";
|
||||||
{
|
deuxfleurs.ipv6 = "::"; #TODO
|
||||||
address = "192.168.0.40";
|
|
||||||
prefixLength = 24;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
networking.wireguard.interfaces.wg0 = {
|
deuxfleurs.cluster_ip = "10.14.0.0";
|
||||||
ips = [ "10.42.2.2/16" ];
|
deuxfleurs.is_raft_server = false; #TODO
|
||||||
listenPort = 42136;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Activate as Nomad and Consul server node
|
|
||||||
services.nomad.settings.server.enabled = true;
|
|
||||||
services.consul.extraConfig.server = true;
|
|
||||||
|
|
||||||
# Nginx configuration:
|
# Nginx configuration:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue