Format
This commit is contained in:
parent
c47db92a88
commit
e7c56b4d22
27 changed files with 107 additions and 202 deletions
|
|
@ -1,8 +1,5 @@
|
|||
{...}: {
|
||||
boot = {
|
||||
loader.grub.device = "/dev/sda";
|
||||
tmp.cleanOnBoot = true;
|
||||
};
|
||||
boot.loader.grub.device = "/dev/sda";
|
||||
|
||||
constants.sopsFile = ../../common/auths.yaml;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
# Public beacon — cloud VPS providing reverse proxy, mail server, Headscale VPN, and Vaultwarden
|
||||
{inputs, ...}: {
|
||||
imports = with inputs; [
|
||||
mailserver.nixosModules.default
|
||||
../../common
|
||||
./caddy.nix
|
||||
./configuration.nix
|
||||
./hardware-configuration.nix
|
||||
|
|
|
|||
|
|
@ -1,21 +1,14 @@
|
|||
{config, ...}: {
|
||||
services = {
|
||||
headscale = with config.constants; {
|
||||
enable = true;
|
||||
address = localhost;
|
||||
port = port.headscale;
|
||||
settings = {
|
||||
dns = {
|
||||
base_domain = "tailscale.${domain}";
|
||||
override_local_dns = false;
|
||||
};
|
||||
server_url = "https://headscale.${domain}";
|
||||
services.headscale = with config.constants; {
|
||||
enable = true;
|
||||
address = localhost;
|
||||
port = port.headscale;
|
||||
settings = {
|
||||
dns = {
|
||||
base_domain = "tailscale.${domain}";
|
||||
override_local_dns = false;
|
||||
};
|
||||
};
|
||||
tailscale = {
|
||||
enable = true;
|
||||
port = 27919;
|
||||
useRoutingFeatures = "both";
|
||||
server_url = "https://headscale.${domain}";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
networking = {
|
||||
firewall.allowedTCPPorts = with config.constants.port; [http https];
|
||||
hostId = "2cadb253";
|
||||
nftables.enable = true;
|
||||
};
|
||||
|
||||
services = {
|
||||
|
|
@ -12,6 +11,7 @@
|
|||
domains = builtins.attrNames config.services.caddy.virtualHosts;
|
||||
};
|
||||
openssh.enable = true;
|
||||
tailscale.useRoutingFeatures = "both";
|
||||
};
|
||||
|
||||
sops.secrets.cloudflare = {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue