Compare commits
No commits in common. "e64e66ecd20de7c51757b8b2fb1fb40256da1dca" and "ec835f30da9478a61e5caca6cd23a7cdf0ccd50a" have entirely different histories.
e64e66ecd2
...
ec835f30da
@ -68,7 +68,7 @@
|
|||||||
ips = [ "fe80::138:2/64" "169.254.138.2/24" ];
|
ips = [ "fe80::138:2/64" "169.254.138.2/24" ];
|
||||||
peers = [ {
|
peers = [ {
|
||||||
allowedIPs = [ "0.0.0.0/0" "::/0" ];
|
allowedIPs = [ "0.0.0.0/0" "::/0" ];
|
||||||
endpoint = "5.45.100.191:50138";
|
endpoint = "188.34.158.206:50138";
|
||||||
publicKey = "aP6optNE7nVk6coo+USkSDtB62rAc/isfofRML9V2HM=";
|
publicKey = "aP6optNE7nVk6coo+USkSDtB62rAc/isfofRML9V2HM=";
|
||||||
persistentKeepalive = 25;
|
persistentKeepalive = 25;
|
||||||
} ];
|
} ];
|
||||||
|
@ -25,15 +25,15 @@
|
|||||||
{ address = "10.152.0.1"; prefixLength = 32; } # Anycast
|
{ address = "10.152.0.1"; prefixLength = 32; } # Anycast
|
||||||
];
|
];
|
||||||
# Network
|
# Network
|
||||||
networking.interfaces.ens3.ipv4.addresses = [ { address = "5.45.100.191"; prefixLength = 22; } ];
|
networking.interfaces.ens3.ipv4.addresses = [ { address = "188.34.158.206"; prefixLength = 32; } ];
|
||||||
networking.interfaces.ens3.ipv6.addresses = [ { address = "2a03:4000:6:48d::1"; prefixLength = 64; } ];
|
networking.interfaces.ens3.ipv6.addresses = [ { address = "2a01:4f8:c010:4c92::1"; prefixLength = 64; } ];
|
||||||
networking.defaultGateway = { address = "5.45.100.1"; interface = "ens3"; };
|
networking.defaultGateway = { address = "172.31.1.1"; interface = "ens3"; };
|
||||||
networking.defaultGateway6 = { address = "fe80::1"; interface = "ens3"; };
|
networking.defaultGateway6 = { address = "fe80::1"; interface = "ens3"; };
|
||||||
networking.nameservers = [ "46.38.255.230" "46.38.252.230" ];
|
networking.nameservers = [ "213.133.98.98" "213.133.99.99" "213.133.100.100" ];
|
||||||
|
|
||||||
networking.wireguard.enable = true;
|
networking.wireguard.enable = true;
|
||||||
networking.wireguard.interfaces = {
|
networking.wireguard.interfaces = {
|
||||||
wg-carbon4 = {
|
wg-carbon = {
|
||||||
ips = [ "fe80::138:1/64" "169.254.138.1/24" ];
|
ips = [ "fe80::138:1/64" "169.254.138.1/24" ];
|
||||||
peers = [ {
|
peers = [ {
|
||||||
allowedIPs = [ "0.0.0.0/0" "::/0" ];
|
allowedIPs = [ "0.0.0.0/0" "::/0" ];
|
||||||
@ -41,18 +41,18 @@
|
|||||||
} ];
|
} ];
|
||||||
listenPort = 50138;
|
listenPort = 50138;
|
||||||
allowedIPsAsRoutes = false;
|
allowedIPsAsRoutes = false;
|
||||||
privateKeyFile = "/var/src/secrets/wireguard/wg-carbon4";
|
privateKeyFile = "/var/src/secrets/wireguard/wg-carbon";
|
||||||
};
|
};
|
||||||
wg-nonat6 = {
|
wg-nonat = {
|
||||||
ips = [ "fe80::1337:1/64" "169.254.137.1/24" ];
|
ips = [ "fe80::1337:1/64" "169.254.137.1/24" ];
|
||||||
peers = [ {
|
peers = [ {
|
||||||
allowedIPs = [ "0.0.0.0/0" "::/0" ];
|
allowedIPs = [ "0.0.0.0/0" "::/0" ];
|
||||||
endpoint = "[2001:638:904:ffca::6]:51337";
|
endpoint = "nonat.net.clerie.de:51337";
|
||||||
publicKey = "Z5HltUKBSOzePqZCJjSsJPZ3UxGjFR4a5Vxmm+ePNRk=";
|
publicKey = "Z5HltUKBSOzePqZCJjSsJPZ3UxGjFR4a5Vxmm+ePNRk=";
|
||||||
} ];
|
} ];
|
||||||
listenPort = 51337;
|
listenPort = 51337;
|
||||||
allowedIPsAsRoutes = false;
|
allowedIPsAsRoutes = false;
|
||||||
privateKeyFile = "/var/src/secrets/wireguard/wg-nonat6";
|
privateKeyFile = "/var/src/secrets/wireguard/wg-nonat";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -112,11 +112,11 @@
|
|||||||
export all;
|
export all;
|
||||||
};
|
};
|
||||||
area 0 {
|
area 0 {
|
||||||
interface "wg-carbon4" {
|
interface "wg-carbon" {
|
||||||
cost 80;
|
cost 80;
|
||||||
type pointopoint;
|
type pointopoint;
|
||||||
};
|
};
|
||||||
interface "wg-nonat6" {
|
interface "wg-nonat" {
|
||||||
cost 80;
|
cost 80;
|
||||||
type pointopoint;
|
type pointopoint;
|
||||||
};
|
};
|
||||||
@ -130,11 +130,11 @@
|
|||||||
export all;
|
export all;
|
||||||
};
|
};
|
||||||
area 0 {
|
area 0 {
|
||||||
interface "wg-carbon4" {
|
interface "wg-carbon" {
|
||||||
cost 80;
|
cost 80;
|
||||||
type pointopoint;
|
type pointopoint;
|
||||||
};
|
};
|
||||||
interface "wg-nonat6" {
|
interface "wg-nonat" {
|
||||||
cost 80;
|
cost 80;
|
||||||
type pointopoint;
|
type pointopoint;
|
||||||
};
|
};
|
||||||
|
@ -8,13 +8,13 @@
|
|||||||
[ (modulesPath + "/profiles/qemu-guest.nix")
|
[ (modulesPath + "/profiles/qemu-guest.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
|
boot.initrd.availableKernelModules = [ "ata_piix" "virtio_pci" "xhci_pci" "sd_mod" "sr_mod" ];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ ];
|
boot.kernelModules = [ ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{ device = "/dev/disk/by-uuid/5cff6266-2474-41e5-9861-6c18ee05a796";
|
{ device = "/dev/disk/by-uuid/d3f901b2-9c2c-4956-938a-2057455107a0";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user