feat: finalise config
This commit is contained in:
parent
3d2efa3b8a
commit
d059da84c4
2 changed files with 6 additions and 8 deletions
|
@ -32,7 +32,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# firewall machiene
|
# firewall machiene
|
||||||
agentjones = import ./machines/agentjones.nix;
|
#agentjones = import ./machines/agentjones.nix;
|
||||||
|
|
||||||
#test02 = import ./machines/test02.nix;
|
#test02 = import ./machines/test02.nix;
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
{ pkgs, lib, nodes, ... }:
|
{ pkgs, lib, nodes, ... }:
|
||||||
let
|
let
|
||||||
# ip = "193.1.99.72";
|
ip_pub = "193.1.99.72";
|
||||||
ip = "192.168.1.157";
|
|
||||||
ip_priv = "172.20.20.1";
|
ip_priv = "172.20.20.1";
|
||||||
# hostname = "agentjones.skynet.ie";
|
hostname = "agentjones.skynet.ie";
|
||||||
hostname = "192.168.1.157";
|
|
||||||
|
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -24,7 +22,7 @@ in {
|
||||||
eth0 = {
|
eth0 = {
|
||||||
ipv4.addresses = [
|
ipv4.addresses = [
|
||||||
{
|
{
|
||||||
address = "${ip}/32";
|
address = "${ip_pub}/32";
|
||||||
prefixLength = 24;
|
prefixLength = 24;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
@ -44,7 +42,7 @@ in {
|
||||||
# always good to know oneself
|
# always good to know oneself
|
||||||
|
|
||||||
own = {
|
own = {
|
||||||
ip = ip;
|
ip = ip_pub;
|
||||||
|
|
||||||
ports = {
|
ports = {
|
||||||
tcp = [
|
tcp = [
|
||||||
|
|
Loading…
Reference in a new issue