33 lines
511 B
Nix
33 lines
511 B
Nix
{
|
|
inputs,
|
|
...
|
|
}:
|
|
|
|
{
|
|
imports = [
|
|
inputs.synix.nixosModules.headplane
|
|
inputs.synix.nixosModules.headscale
|
|
];
|
|
|
|
services.headplane = {
|
|
enable = true;
|
|
reverseProxy = {
|
|
enable = true;
|
|
subdomain = "hp";
|
|
};
|
|
};
|
|
|
|
services.headscale = {
|
|
enable = true;
|
|
openFirewall = true;
|
|
reverseProxy = {
|
|
enable = true;
|
|
subdomain = "hs";
|
|
};
|
|
settings = {
|
|
dns = {
|
|
magic_dns = true; # NOTE: should coredns handle everything?
|
|
};
|
|
};
|
|
};
|
|
}
|