create own library for globals and net.nix
This commit is contained in:
parent
c8023afceb
commit
8b937fdfc4
12 changed files with 31 additions and 33 deletions
4
my-lib/default.nix
Normal file
4
my-lib/default.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
lib: {
|
||||
net = import ./net.nix lib;
|
||||
globals = import ./globals.nix;
|
||||
}
|
24
my-lib/globals.nix
Normal file
24
my-lib/globals.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
networking = {
|
||||
public = {
|
||||
ipv4.router = "192.145.57.90";
|
||||
ipv6.router = "2a0d:6e00:1a77::1";
|
||||
};
|
||||
|
||||
dmz = {
|
||||
ipv4 = {
|
||||
prefixLength = "24";
|
||||
dockerSwarm = "192.168.30.8";
|
||||
router = "192.168.30.1";
|
||||
services = "192.168.30.7";
|
||||
};
|
||||
|
||||
ipv6 = {
|
||||
prefixLength = "64";
|
||||
dockerSwarm = "2a0d:6e00:1a77:30:c8fe:c0ff:feff:ee08";
|
||||
router = "2a0d:6e00:1a77:30::1";
|
||||
services = "2a0d:6e00:1a77:30::7";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
1323
my-lib/net.nix
Normal file
1323
my-lib/net.nix
Normal file
File diff suppressed because it is too large
Load diff
Reference in a new issue