mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-10 04:49:19 -08:00
26 lines
464 B
Nix
26 lines
464 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
meta,
|
|
...
|
|
}:
|
|
with lib; {
|
|
options.deploy.system = mkOption {
|
|
type = types.unspecified;
|
|
readOnly = true;
|
|
};
|
|
config = {
|
|
deploy.system = config.system.build.toplevel;
|
|
|
|
networking.domain = "inskip.me";
|
|
|
|
networking.firewall = {
|
|
trustedInterfaces = ["tailscale0"];
|
|
allowedTCPPorts = [5200];
|
|
allowedUDPPorts = [config.services.tailscale.port];
|
|
};
|
|
|
|
services.tailscale.enable = true;
|
|
};
|
|
}
|