nixos-config/hosts/vps-private/default.nix

52 lines
1.1 KiB
Nix

{ config, self, ... }:
{
imports = [ self.nixosModules.profile-server ];
system.stateVersion = "25.11";
custom =
let
privateDomain = config.custom.networking.overlay.domain;
in
{
boot.loader.systemd-boot.enable = true;
networking = {
overlay = {
address = "10.254.250.2";
isLighthouse = true;
};
underlay = {
interface = "enp1s0";
cidr = "49.13.231.235/32";
isPublic = true;
gateway = "172.31.1.1";
};
};
services = {
dns.enable = true;
syncthing = {
enable = true;
deviceId = "5R2MH7T-Q2ZZS2P-ZMSQ2UJ-B6VBHES-XYLNMZ6-7FYC27L-4P7MGJ2-FY4ITQD";
isServer = true;
gui.domain = "syncthing.${privateDomain}";
doBackups = true;
};
};
web-services = {
filebrowser = {
enable = true;
domain = "files.${privateDomain}";
doBackups = true;
};
actualbudget = {
enable = true;
domain = "budget.${privateDomain}";
doBackups = true;
};
};
};
}