owncast: initial container
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
7cb1b981ca
commit
374b4f3b5d
2 changed files with 30 additions and 0 deletions
29
options/custom/containers/owncast.nix
Normal file
29
options/custom/containers/owncast.nix
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib; let
|
||||||
|
cfg = config.custom.containers.owncast;
|
||||||
|
in {
|
||||||
|
options.custom.containers.owncast.enable = mkOption {default = false;};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
#?? arion-owncast pull
|
||||||
|
environment.shellAliases.arion-owncast = "sudo arion --prebuilt-file ${config.virtualisation.arion.projects.owncast.settings.out.dockerComposeYaml}";
|
||||||
|
|
||||||
|
virtualisation.arion.projects.owncast.settings.services = {
|
||||||
|
owncast.service = {
|
||||||
|
container_name = "owncast";
|
||||||
|
image = "owncast/owncast:0.1.3";
|
||||||
|
restart = "unless-stopped";
|
||||||
|
volumes = ["${config.custom.containers.directory}/owncast/data:/app/data"];
|
||||||
|
|
||||||
|
ports = [
|
||||||
|
"1935:1935"
|
||||||
|
"127.0.0.1:8800:8080"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -15,6 +15,7 @@
|
||||||
mastodon.enable = true;
|
mastodon.enable = true;
|
||||||
netbox.enable = true;
|
netbox.enable = true;
|
||||||
nextcloud.enable = true;
|
nextcloud.enable = true;
|
||||||
|
owncast.enable = true;
|
||||||
redlib.enable = true;
|
redlib.enable = true;
|
||||||
searxng.enable = true;
|
searxng.enable = true;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue