small cleanup

This commit is contained in:
Dmitriy Kholkin 2023-07-30 03:31:18 +03:00
parent de131d8e80
commit ab988216b1
2 changed files with 0 additions and 45 deletions

View File

@ -1,24 +0,0 @@
{ config, lib, pkgs, ... }: {
# secrets.headscale-db.owner = config.services.headscale.user;
# FIXME: https://github.com/juanfont/headscale/blob/main/config-example.yaml
services.headscale = {
enable = true;
serverUrl = "http://192.168.0.100:8080";
address = "192.168.0.100";
serverUrl = "http://tailscale.ataraxiadev.com:8080";
# address = "0.0.0.0";
port = 8080;
dns = {
magicDns = true;
nameservers = "192.168.0.1";
baseDomain = "ataraxiadev.com";
};
# database.passwordFile = config.secrets.headscale-db.decrypted;
# database.path = "/var/lib/headscale/db.sqlite";
# privateKeyFile = "/var/lib/headscale/private.key";
};
environment.systemPackages = [ config.services.headscale.package ];
networking.firewall.allowedTCPPorts = [ config.services.headscale.port ];
persist.state.directories = [ "/var/lib/headscale" ];
}

View File

@ -69,25 +69,4 @@ in {
''; '';
}; };
}; };
# services.caddy = {
# enable = true;
# email = "needed@for.acme";
# virtualHosts = {
# "${config.networking.hostName}.${config.networking.domain}" = {
# extraConfig = ''
# route /hooks/* {
# # no uri manipulation, path /hooks/ on webhook service as well
# reverse_proxy http://localhost:9000;
# }
# '';
# };
# "hugo.site" = {
# extraConfig = ''
# root * /srv/http/ataraxiadev.com/docroot
# file_server
# '';
# };
# };
# };
} }