Skip to content

Commit

Permalink
added metube
Browse files Browse the repository at this point in the history
  • Loading branch information
heywoodlh committed Oct 29, 2024
1 parent 77bdcba commit aa786ed
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@
./nixos/hosts/m1-mac-mini.nix
./nixos/server.nix
./nixos/roles/media/plex.nix
./nixos/roles/media/youtube.nix
./nixos/roles/monitoring/iperf.nix
./nixos/roles/nixos/asahi.nix
{
Expand Down
35 changes: 35 additions & 0 deletions nixos/roles/media/youtube.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{ config, pkgs, ... }:

let
system = pkgs.system;
resolvConf = pkgs.writeText "resolv.conf" ''
nameserver 1.1.1.1
nameserver 1.0.0.1
'';
in {
networking.firewall.allowedTCPPorts = [
6081
];

virtualisation.oci-containers = {
backend = "docker";
containers = {
metube = {
image = "ghcr.io/alexta69/metube";
autoStart = true;
volumes = [
"/media/home-media/disk2/videos:/downloads"
"${resolvConf}:/etc/resolv.conf"
];
ports = [
"6081:8081"
];
environment = {
UID = "995";
GID = "995";
DEFAULT_THEME = "dark";
};
};
};
};
}

0 comments on commit aa786ed

Please sign in to comment.