netmaker configs go

This commit is contained in:
atagen 2022-09-04 19:52:09 +10:00
parent 46075b214a
commit 3c5f9258b8
4 changed files with 45 additions and 1 deletions

View file

@ -20,6 +20,25 @@
networking.useDHCP = lib.mkDefault true;
networking.wireguard = {
enable = true;
interfaces = {
pond = {
ips = [ "10.4.20.3/32" ];
listenPort = 51820;
privateKeyFile = "/root/pond.priv";
peers = [
{
publicKey = "ll0/+7bbaAFgCuUOj0s0twHalXLxcXOtkxJbtw/egV4=";
allowedIPs = [ "10.4.20.0/24" ];
endpoint = "141.164.52.106:51821";
persistentKeepalive = 20;
}
];
};
};
};
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
networking.hostName = "adrift"; # Define your hostname.

View file

@ -6,7 +6,7 @@
imports = [
# where are we ?
# ./wollomi.nix
./wollomi.nix
# ./adrift.nix
# home manager should exist for users
@ -113,6 +113,11 @@
zsh
];
networking.firewall = {
allowedUDPPorts = [ 51820 ];
};
system.stateVersion = "22.05"; # Did you read the comment?

View file

@ -23,6 +23,25 @@
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
networking.wireguard = {
enable = true;
interfaces = {
pond = {
ips = [ "10.4.20.2/32" ];
listenPort = 51820;
privateKeyFile = "/root/pond.priv";
peers = [
{
publicKey = "ll0/+7bbaAFgCuUOj0s0twHalXLxcXOtkxJbtw/egV4=";
allowedIPs = [ "10.4.20.0/24" ];
endpoint = "141.164.52.106:51821";
persistentKeepalive = 20;
}
];
};
};
};
# dlna
services.minidlna = {
enable = true;