feat: add vps host configurations

This commit is contained in:
lightly-toasted 2025-09-24 17:47:00 +09:00
parent 14fdc3875f
commit d7179b75a8
12 changed files with 113 additions and 0 deletions

View file

@ -0,0 +1,7 @@
{
imports = [
./tailscale.nix
./vaultwarden.nix
./openssh.nix
];
}

View file

@ -0,0 +1,3 @@
{
services.openssh.enable = true;
}

View file

@ -0,0 +1,11 @@
{ config, pkgs, ... }:
{
sops.secrets."tailscale/authkey" = { };
services.tailscale = {
enable = true;
authKeyFile = config.sops.secrets."tailscale/authkey".path;
useRoutingFeatures = "both";
};
}

View file

@ -0,0 +1,9 @@
{
services.vaultwarden = {
enable = true;
config = {
ROCKET_ADDRESS = "127.0.0.1";
ROCKET_PORT = 8222;
};
};
}