mirror of
https://github.com/tuxdotrs/nix-config.git
synced 2026-08-05 05:46:33 +05:30
feat: setup nginx and aiostreams for self-hosting
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
hostName,
|
||||
userName,
|
||||
...
|
||||
}:
|
||||
}@innerArgs:
|
||||
{
|
||||
imports = with config.flake.modules.nixos; [
|
||||
boot
|
||||
@@ -38,6 +38,24 @@
|
||||
netbird-client.enable = true;
|
||||
};
|
||||
|
||||
services = {
|
||||
nginx = {
|
||||
enable = true;
|
||||
domain = "lab.tux.rs";
|
||||
};
|
||||
aiostreams = {
|
||||
enable = true;
|
||||
port = 4567;
|
||||
|
||||
environment = {
|
||||
ADDON_ID = "aiostreams.lab.tux.rs";
|
||||
BASE_URL = "https://aiostreams.lab.tux.rs";
|
||||
};
|
||||
|
||||
environmentFile = innerArgs.config.sops.secrets."aiostreams".path;
|
||||
};
|
||||
};
|
||||
|
||||
virtualisation = {
|
||||
docker.enable = true;
|
||||
};
|
||||
@@ -68,6 +86,18 @@
|
||||
sopsFile = ./secrets.yaml;
|
||||
owner = userName;
|
||||
};
|
||||
|
||||
"cloudflare-credentials/email" = {
|
||||
sopsFile = ./secrets.yaml;
|
||||
};
|
||||
|
||||
"cloudflare-credentials/dns-api-token" = {
|
||||
sopsFile = ./secrets.yaml;
|
||||
};
|
||||
|
||||
aiostreams = {
|
||||
sopsFile = ./secrets.yaml;
|
||||
};
|
||||
};
|
||||
|
||||
# --- Networking ---
|
||||
|
||||
Reference in New Issue
Block a user