Feature (WIP): Init headscale module.
This commit is contained in:
parent
ed99e79789
commit
ce66ca6f0b
26
dotfiles/modules/services/headscale.nix
Normal file
26
dotfiles/modules/services/headscale.nix
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
{ ... }: {
|
||||||
|
services.headscale = {
|
||||||
|
enable = true;
|
||||||
|
address = "127.0.0.1";
|
||||||
|
port = 8080;
|
||||||
|
user = "headscale";
|
||||||
|
group = "headscale";
|
||||||
|
settings = {
|
||||||
|
server_url = "https://vpn.jafner.net";
|
||||||
|
tls_letsencrypt_hostname = "vpn.jafner.net";
|
||||||
|
database = {
|
||||||
|
type = "sqlite";
|
||||||
|
sqlite = {
|
||||||
|
path = "/var/lib/headscale/db.sqlite";
|
||||||
|
write_ahead_log = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
dns = {
|
||||||
|
nameservers.global = [ ];
|
||||||
|
base_domain = "jafner.net";
|
||||||
|
magic_dns = true;
|
||||||
|
search_domains = [ ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user