36 lines
579 B
Nix
36 lines
579 B
Nix
{
|
|
inputs,
|
|
constants,
|
|
...
|
|
}:
|
|
|
|
{
|
|
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.extra_records = [
|
|
{
|
|
name = constants.services.vaultwarden.fqdn;
|
|
type = "A";
|
|
value = constants.hosts.rx4.ip;
|
|
}
|
|
];
|
|
};
|
|
}
|