headscale works
This commit is contained in:
@@ -49,7 +49,7 @@
|
|||||||
# nix run github:serokell/deploy-rs
|
# nix run github:serokell/deploy-rs
|
||||||
deploy.nodes = {
|
deploy.nodes = {
|
||||||
vps = {
|
vps = {
|
||||||
hostname = "10.0.0.3";
|
hostname = "vps.vpn";
|
||||||
sshUser = "root";
|
sshUser = "root";
|
||||||
magicRollbackTimeout = 120;
|
magicRollbackTimeout = 120;
|
||||||
profiles.system = {
|
profiles.system = {
|
||||||
@@ -60,7 +60,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
desktop = {
|
desktop = {
|
||||||
hostname = "10.0.0.2";
|
hostname = "desktop.vpn";
|
||||||
sshUser = "root";
|
sshUser = "root";
|
||||||
magicRollbackTimeout = 120;
|
magicRollbackTimeout = 120;
|
||||||
profiles.system = {
|
profiles.system = {
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
../../modules/network.nix
|
../../modules/network.nix
|
||||||
../../modules/ssh.nix
|
../../modules/ssh.nix
|
||||||
../../modules/wireguard.nix
|
../../modules/wireguard.nix
|
||||||
|
../../modules/headscale.nix
|
||||||
../../modules/tailscale.nix
|
../../modules/tailscale.nix
|
||||||
|
|
||||||
../../modules/site.nix
|
../../modules/site.nix
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
../../modules/network.nix
|
../../modules/network.nix
|
||||||
../../modules/ssh.nix
|
../../modules/ssh.nix
|
||||||
../../modules/wireguard.nix
|
../../modules/wireguard.nix
|
||||||
../../modules/headscale.nix
|
../../modules/tailscale.nix
|
||||||
|
|
||||||
../../modules/http-forwarding.nix
|
../../modules/http-forwarding.nix
|
||||||
];
|
];
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
+10
-3
@@ -1,11 +1,17 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
systemd.services.headscale.environment = {
|
||||||
|
GODEBUG = "netdns=go";
|
||||||
|
};
|
||||||
|
networking.enableIPv6 = false;
|
||||||
|
environment.etc."headscale/derp.yaml".source = ./derp.yaml;
|
||||||
services.headscale = {
|
services.headscale = {
|
||||||
|
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
server_url = "https://vpn.grasswren.net";
|
server_url = "https://vpn.grasswren.net";
|
||||||
listen_addr = "127.0.0.1:8080";
|
listen_addr = "0.0.0.0:8080";
|
||||||
|
|
||||||
database.type = "sqlite";
|
database.type = "sqlite";
|
||||||
|
|
||||||
@@ -15,8 +21,9 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
dns = {
|
dns = {
|
||||||
magic_domain = true;
|
magic_dns = true;
|
||||||
base_domain = "vpn.grasswren.net";
|
base_domain = "vpn";
|
||||||
|
nameservers.global = [ "1.1.1.1" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
+2
-2
@@ -10,8 +10,8 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
directory = "/var/lib/media/music";
|
directory = "/var/lib/music";
|
||||||
library = "/var/lib/media/music/library.db";
|
library = "/var/lib/music/library.db";
|
||||||
|
|
||||||
plugins = [
|
plugins = [
|
||||||
"musicbrainz"
|
"musicbrainz"
|
||||||
|
|||||||
+2
-2
@@ -6,7 +6,7 @@ in
|
|||||||
{
|
{
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
enable = true;
|
enable = true;
|
||||||
interfaces.wg0.allowedTCPPorts = [ 22 ];
|
allowedTCPPorts = [ 22 ];
|
||||||
};
|
};
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -16,7 +16,7 @@ in
|
|||||||
KbdInteractiveAuthentication = false;
|
KbdInteractiveAuthentication = false;
|
||||||
};
|
};
|
||||||
listenAddresses = [{
|
listenAddresses = [{
|
||||||
addr = me.address-vpn;
|
addr = "0.0.0.0";
|
||||||
port = 22;
|
port = 22;
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user