netmaker to tailscale
This commit is contained in:
parent
058ead65c3
commit
58907953df
2 changed files with 7 additions and 20 deletions
|
@ -85,6 +85,8 @@
|
|||
|
||||
programs.zsh.enable = true;
|
||||
users.defaultUserShell = pkgs.zsh;
|
||||
|
||||
services.tailscale.enable = true;
|
||||
|
||||
# rust
|
||||
nixpkgs.overlays = [
|
||||
|
@ -99,6 +101,8 @@
|
|||
"rustfmt"
|
||||
])
|
||||
|
||||
tailscale
|
||||
|
||||
cachix
|
||||
|
||||
helix
|
||||
|
@ -116,8 +120,10 @@
|
|||
|
||||
|
||||
networking.firewall = {
|
||||
allowedUDPPorts = [ 51820 ];
|
||||
allowedUDPPorts = [ 41641 ];
|
||||
checkReversePath = "loose";
|
||||
};
|
||||
|
||||
|
||||
system.stateVersion = "22.05"; # Did you read the comment?
|
||||
|
||||
|
|
|
@ -23,25 +23,6 @@
|
|||
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
|
||||
networking.wireguard = {
|
||||
enable = true;
|
||||
interfaces = {
|
||||
pond = {
|
||||
ips = [ "10.4.20.1/32" ];
|
||||
listenPort = 51821;
|
||||
privateKeyFile = "/root/pond.priv";
|
||||
peers = [
|
||||
{
|
||||
publicKey = "GzLoJ99BrmF4X4DKHtBOskIB2SsApkZ2jzPigSYkaX8=";
|
||||
allowedIPs = [ "10.4.20.0/24" ];
|
||||
endpoint = "45.76.121.195:51821";
|
||||
persistentKeepalive = 20;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# dlna
|
||||
services.minidlna = {
|
||||
enable = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue