define jool system
This commit is contained in:
parent
c2b6c5ddcb
commit
a876ea0694
3 changed files with 32 additions and 1 deletions
|
@ -49,6 +49,7 @@ in
|
|||
|
||||
# prod hosts (public user)
|
||||
"cookies.eh22.intern" = mkSystem "x86_64-linux" "cookies.eh22.intern";
|
||||
"jool.nat64.eh22.intern" = mkSystem "x86_64-linux" "jool.nat64.eh22.intern";
|
||||
|
||||
# staging temp infra
|
||||
"sketchy-router.noc.eh22.intern" = mkSystem "x86_64-linux" "sketchy-router.noc.eh22.intern";
|
||||
|
|
26
systems/jool.nat64.eh22.intern.nix
Normal file
26
systems/jool.nat64.eh22.intern.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [ ];
|
||||
|
||||
# configure static IP address
|
||||
networking.useDHCP = false;
|
||||
systemd.network = {
|
||||
enable = true;
|
||||
networks = {
|
||||
"10-eth0" = {
|
||||
matchConfig.MACAddress = "BC:24:11:41:E1:61";
|
||||
address = [ "94.45.248.2/24" ];
|
||||
gateway = [ "BC:24:11:21:7F:AF" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# DO NOT CHANGE
|
||||
# this defines the first version of NixOS that was installed on the machine so that programs with non-migratable data files are kept compatible
|
||||
home-manager.users.noc.home.stateVersion = "24.11";
|
||||
system.stateVersion = "24.11";
|
||||
}
|
|
@ -42,7 +42,10 @@ in
|
|||
};
|
||||
"10-ethPubUsr" = {
|
||||
matchConfig.Name = "ethPubUsr";
|
||||
address = [ "10.0.0.1/24" ];
|
||||
address = [
|
||||
"10.0.0.1/24"
|
||||
"94.45.248.1/24"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -53,6 +56,7 @@ in
|
|||
internalIPs = [
|
||||
"10.20.25.0/24"
|
||||
"10.0.0.0/24"
|
||||
"94.45.248.0/24"
|
||||
];
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue