diff --git a/hosts/sombrero/configuration.nix b/hosts/sombrero/configuration.nix index 1d02260..5e2acd4 100644 --- a/hosts/sombrero/configuration.nix +++ b/hosts/sombrero/configuration.nix @@ -63,7 +63,7 @@ }; firewall = { - allowedTCPPorts = [ 1122 ]; + allowedTCPPorts = [ 1122 32400 ]; }; }; @@ -97,6 +97,31 @@ }; }; + virtualisation = { + podman = { + enable = true; + dockerCompat = true; + }; + + oci-containers.containers = { + plex = { + image = "linuxserver/plex"; + autoStart = true; + + environment = { + TZ = "Europe/Stockholm"; + VERSION = "latest"; + }; + extraOptions = [ "--network=host" ]; + volumes = [ + "/home/alex/media/plex/db:/config" + "/home/alex/media/Movies:/movies" + "/home/alex/media/TV:/tv" + ]; + }; + }; + }; + users = { mutableUsers = false;