feat: finalise config

This commit is contained in:
silver 2023-01-17 20:50:17 +00:00
parent 3d2efa3b8a
commit d059da84c4
2 changed files with 6 additions and 8 deletions

View file

@ -32,7 +32,7 @@
};
# firewall machiene
agentjones = import ./machines/agentjones.nix;
#agentjones = import ./machines/agentjones.nix;
#test02 = import ./machines/test02.nix;

View file

@ -1,10 +1,8 @@
{ pkgs, lib, nodes, ... }:
let
# ip = "193.1.99.72";
ip = "192.168.1.157";
ip_pub = "193.1.99.72";
ip_priv = "172.20.20.1";
# hostname = "agentjones.skynet.ie";
hostname = "192.168.1.157";
hostname = "agentjones.skynet.ie";
in {
imports = [
@ -24,7 +22,7 @@ in {
eth0 = {
ipv4.addresses = [
{
address = "${ip}/32";
address = "${ip_pub}/32";
prefixLength = 24;
}
];
@ -44,7 +42,7 @@ in {
# always good to know oneself
own = {
ip = ip;
ip = ip_pub;
ports = {
tcp = [