mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 09:44:08 -05:00
testing headscale
This commit is contained in:
parent
9fd36d39c6
commit
ff802cd127
2 changed files with 25 additions and 0 deletions
|
|
@ -16,6 +16,7 @@
|
|||
|
||||
# FIXME(TODO): Turn this into it's own backup module
|
||||
./backup.nix
|
||||
./headscale.nix
|
||||
|
||||
# Disks
|
||||
inputs.disko.nixosModules.disko
|
||||
|
|
|
|||
24
hosts/nixos/HandlerOne/headscale.nix
Normal file
24
hosts/nixos/HandlerOne/headscale.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{pkgs, ...}: {
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
virtualHosts."headscale.wanderingcrow.net".extraConfig = ''
|
||||
reverse_proxy 127.0.0.1:8088
|
||||
'';
|
||||
};
|
||||
|
||||
services.headscale = {
|
||||
enable = true;
|
||||
package = pkgs.headscale;
|
||||
port = 8088;
|
||||
address = "127.0.0.1";
|
||||
settings = {
|
||||
server_url = "https://headscale.wanderingcrow.net";
|
||||
grpc_listen_addr = "0.0.0.0:50443";
|
||||
database.type = "sqlite";
|
||||
dns = {
|
||||
magic_dns = true;
|
||||
base_domain = "wce-internal";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue