containers: clean up domain names

This commit is contained in:
Cilly Leang 2026-03-17 17:01:15 +11:00
parent 66332a980a
commit 518c718a5d
Signed by: cilly
GPG key ID: 6500251E087653C9
6 changed files with 17 additions and 13 deletions

View file

@ -1,4 +1,4 @@
{ config, lib, ... }: {
{ fqdn, ... }: {
system.stateVersion = "25.11";
systemd.tmpfiles.rules = [
"d /persist/vaultwarden 755 vaultwarden vaultwarden"
@ -13,6 +13,6 @@
services.vaultwarden = {
enable = true;
domain = "diamond.local.lava.moe";
domain = fqdn;
};
}

View file

@ -5,6 +5,7 @@
outputs = { nixpkgs, ... }:
let
name = "diamond";
fqdn = "astransia.lava.moe";
subnetId = "4";
subnet = x: "fd0d:1::${subnetId}:${toString x}";
@ -19,7 +20,7 @@
inherit modules;
};
nixosModule = { ... }: {
services.nginx.virtualHosts."diamond.local.lava.moe" = {
services.nginx.virtualHosts."${fqdn}" = {
useACMEHost = "lava.moe";
forceSSL = true;
locations."/".proxyPass = "http://[${client}]:8000";
@ -35,6 +36,7 @@
nixpkgs = nixpkgs;
ephemeral = true;
config = { imports = modules; };
specialArgs = { inherit fqdn; };
bindMounts."persist" = {
hostPath = "/persist/containers/${name}";