diff --git a/systems/LoutreOS/configuration.nix b/systems/LoutreOS/configuration.nix index b60e6ae..367f3a1 100644 --- a/systems/LoutreOS/configuration.nix +++ b/systems/LoutreOS/configuration.nix @@ -178,6 +178,8 @@ services.autossh.sessions = [ { extraArguments = "-N -R 0.0.0.0:2222:127.0.0.1:22 loutre@vps772619.ovh.net"; monitoringPort = 20000; name = "backup-ssh-reverse"; user = "autossh"; } ]; + virtualisation.podman.enable = true; + security.sudo.wheelNeedsPassword = false; system.stateVersion = "18.03"; diff --git a/systems/LoutreOS/medias.nix b/systems/LoutreOS/medias.nix index 6ed2c0e..a3dac88 100644 --- a/systems/LoutreOS/medias.nix +++ b/systems/LoutreOS/medias.nix @@ -24,11 +24,6 @@ package = pkgs.jellyfin; }; - slimserver = { - enable = true; - dataDir = "/var/lib/slimserver"; - }; - navidrome = { enable = true; settings = { @@ -49,4 +44,25 @@ config.services.transmission.settings.peer-port ]; }; + + virtualisation.oci-containers = { + backend = "podman"; + containers = { + slimserver = { + image = "docker.io/lmscommunity/logitechmediaserver:stable"; + volumes = [ + "/mnt/medias/musique:/music:ro" + "/var/lib/slimserver:/config:rw" + "/etc/localtime:/etc/localtime:ro" + ]; + ports = [ + "9000:9000/tcp" + "9090:9090/tcp" + "3483:3483/tcp" + "3483:3483/udp" + ]; + extraOptions = ["--pull=always"]; + }; + }; + }; }