mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-06 21:17:14 -06:00
test: jellyfin microVM
This commit is contained in:
parent
1faa06262d
commit
5fc49f405a
2 changed files with 28 additions and 30 deletions
|
|
@ -149,10 +149,8 @@ in
|
|||
users.users.caddy.extraGroups = [ "acme" ];
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
# Create directories with 777 permissions so the jellyfin user (UID 999) inside the VM can write
|
||||
# VirtioFS preserves host permissions, and we can't easily match UIDs between host and guest
|
||||
"d ${serviceCfg.mntPaths.path0} 0777 root root -"
|
||||
"d ${serviceCfg.mntPaths.path0}/cache 0777 root root -"
|
||||
"d ${serviceCfg.mntPaths.path0} 0755 999 999 -"
|
||||
"d ${serviceCfg.mntPaths.path0}/cache 0755 999 999 -"
|
||||
];
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,32 +18,32 @@
|
|||
# ┌────────────────────────────────────────────────┐
|
||||
# │ Host (NixOS Server) │
|
||||
# │ │
|
||||
# │ ┌──────────────┐ ┌──────────────┐ │
|
||||
# │ │ Caddy │ │ br-vms │ │
|
||||
# │ │ (Reverse │──────│ Bridge │ │
|
||||
# │ │ Proxy) │ │ 192.168.50 │ │
|
||||
# │ │ TLS Term │ │ .240 │ │
|
||||
# │ └──────────────┘ └──────┬───────┘ │
|
||||
# │ :443 │ │
|
||||
# │ │ ┌─────▼──────┐ │
|
||||
# │ │ │ vm-NAME │ │
|
||||
# │ │ │ (TAP) │ │
|
||||
# │ │ └─────┬──────┘ │
|
||||
# │ │ │ │
|
||||
# │ ┌─────▼──────────────────────▼────────────┐ │
|
||||
# │ │ │ │
|
||||
# │ │ MicroVM Guest │ │
|
||||
# │ │ ┌────────────┐ ┌────────────┐ │ │
|
||||
# │ │ │ Service │ │ enp0s5 │ │ │
|
||||
# │ │ │ :PORT │ │192.168.50 │ │ │
|
||||
# │ │ │ │ │ .1XX │ │ │
|
||||
# │ │ └────────────┘ └────────────┘ │ │
|
||||
# │ │ │ │
|
||||
# │ │ VirtioFS Mounts: │ │
|
||||
# │ │ • /nix/.ro-store → Host /nix/store │ │
|
||||
# │ │ • /var/lib/NAME → Host /mnt/storage │ │
|
||||
# │ │ • /run/secrets → Host /run/secrets/NAME│ │
|
||||
# │ └─────────────────────────────────────────┘ │
|
||||
# │ ┌──────────────┐ ┌──────────────┐ │
|
||||
# │ │ Caddy │ │ br-vms │ │
|
||||
# │ │ (Reverse │──────│ Bridge │ │
|
||||
# │ │ Proxy) │ │ 192.168.50 │ │
|
||||
# │ │ TLS Term │ │ .240 │ │
|
||||
# │ └──────────────┘ └──────┬───────┘ │
|
||||
# │ :443 │ │
|
||||
# │ │ ┌─────▼──────┐ │
|
||||
# │ │ │ vm-NAME │ │
|
||||
# │ │ │ (TAP) │ │
|
||||
# │ │ └─────┬──────┘ │
|
||||
# │ │ │ │
|
||||
# │ ┌─────▼──────────────────────▼────────────┐ │
|
||||
# │ │ │ │
|
||||
# │ │ MicroVM Guest │ │
|
||||
# │ │ ┌────────────┐ ┌────────────┐ │ │
|
||||
# │ │ │ Service │ │ enp0s5 │ │ │
|
||||
# │ │ │ :PORT │ │192.168.50 │ │ │
|
||||
# │ │ │ │ │ .1XX │ │ │
|
||||
# │ │ └────────────┘ └────────────┘ │ │
|
||||
# │ │ │ │
|
||||
# │ │ VirtioFS Mounts: │ │
|
||||
# │ │ • /nix/.ro-store → Host /nix/store │ │
|
||||
# │ │ • /var/lib/NAME → Host /mnt/storage │ │
|
||||
# │ │ • /run/secrets → Host /run/secrets/NAME│ │
|
||||
# │ └─────────────────────────────────────────┘ │
|
||||
# │ │
|
||||
# └────────────────────────────────────────────────┘
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue