headscale works
This commit is contained in:
File diff suppressed because one or more lines are too long
+10
-3
@@ -1,11 +1,17 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
systemd.services.headscale.environment = {
|
||||
GODEBUG = "netdns=go";
|
||||
};
|
||||
networking.enableIPv6 = false;
|
||||
environment.etc."headscale/derp.yaml".source = ./derp.yaml;
|
||||
services.headscale = {
|
||||
|
||||
enable = true;
|
||||
settings = {
|
||||
server_url = "https://vpn.grasswren.net";
|
||||
listen_addr = "127.0.0.1:8080";
|
||||
listen_addr = "0.0.0.0:8080";
|
||||
|
||||
database.type = "sqlite";
|
||||
|
||||
@@ -15,8 +21,9 @@
|
||||
];
|
||||
|
||||
dns = {
|
||||
magic_domain = true;
|
||||
base_domain = "vpn.grasswren.net";
|
||||
magic_dns = true;
|
||||
base_domain = "vpn";
|
||||
nameservers.global = [ "1.1.1.1" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
+2
-2
@@ -10,8 +10,8 @@
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
directory = "/var/lib/media/music";
|
||||
library = "/var/lib/media/music/library.db";
|
||||
directory = "/var/lib/music";
|
||||
library = "/var/lib/music/library.db";
|
||||
|
||||
plugins = [
|
||||
"musicbrainz"
|
||||
|
||||
+2
-2
@@ -6,7 +6,7 @@ in
|
||||
{
|
||||
networking.firewall = {
|
||||
enable = true;
|
||||
interfaces.wg0.allowedTCPPorts = [ 22 ];
|
||||
allowedTCPPorts = [ 22 ];
|
||||
};
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
@@ -16,7 +16,7 @@ in
|
||||
KbdInteractiveAuthentication = false;
|
||||
};
|
||||
listenAddresses = [{
|
||||
addr = me.address-vpn;
|
||||
addr = "0.0.0.0";
|
||||
port = 22;
|
||||
}];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user