sakura: init ganymede
This commit is contained in:
parent
5801d4337e
commit
2af33264f6
3 changed files with 37 additions and 0 deletions
hosts/sakura
|
@ -35,6 +35,10 @@
|
|||
device = "192.168.1.199:/mnt/Sutoreji/nix-restic-data/sakura";
|
||||
fsType = "nfs";
|
||||
};
|
||||
"/nas/vods" = {
|
||||
device = "192.168.1.199:/mnt/Sutoreji/vods";
|
||||
fsType = "nfs";
|
||||
};
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
|
|
|
@ -10,5 +10,6 @@
|
|||
./tailscale.nix
|
||||
./rustlog.nix
|
||||
./wastebin.nix
|
||||
./ganymede.nix
|
||||
];
|
||||
}
|
||||
|
|
32
hosts/sakura/services/ganymede.nix
Normal file
32
hosts/sakura/services/ganymede.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
_: {
|
||||
networking.firewall.allowedTCPPorts = [4800];
|
||||
|
||||
sops.secrets.ganymede-auth = {};
|
||||
virtualisation.oci-containers.containers = {
|
||||
ganymede = {
|
||||
hostname = "ganymede";
|
||||
image = "ghcr.io/zibbp/ganymede@sha256:3f7a93e4875b665cd6473cea99f35fc790facd1f6cfed7c3e6c34c65a405727f"; # 4.0.3
|
||||
ports = ["4800:4800"];
|
||||
environment = {
|
||||
VIDEOS_DIR = "/data/videos";
|
||||
TEMP_DIR = "/data/temp";
|
||||
TZ = "America/New_York";
|
||||
MAX_CHAT_DOWNLOAD_EXECUTIONS = "3";
|
||||
MAX_CHAT_RENDER_EXECUTIONS = "2";
|
||||
MAX_VIDEO_DOWNLOAD_EXECUTIONS = "2";
|
||||
MAX_VIDEO_CONVERT_EXECUTIONS = "3";
|
||||
MAX_VIDEO_SPRITE_THUMBNAIL_EXECUTIONS = "2";
|
||||
};
|
||||
environmentFiles = [
|
||||
/run/secrets/ganymede-auth # stores db creds && twitch creds
|
||||
];
|
||||
volumes = [
|
||||
"/nas/vods:/data/videos"
|
||||
"/nas/vods/docker/ganymede:/data/temp"
|
||||
"/nas/vods/docker/ganymede/logs:/data/logs"
|
||||
"/nas/vods/docker/ganymede/config:/data/config"
|
||||
];
|
||||
extraOptions = ["--network=host"];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue