forked from nyanloutre/nixos-config
migrate slimserver to docker container
This commit is contained in:
parent
53cf463bba
commit
a1d875e903
@ -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"; } ];
|
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;
|
security.sudo.wheelNeedsPassword = false;
|
||||||
|
|
||||||
system.stateVersion = "18.03";
|
system.stateVersion = "18.03";
|
||||||
|
@ -24,11 +24,6 @@
|
|||||||
package = pkgs.jellyfin;
|
package = pkgs.jellyfin;
|
||||||
};
|
};
|
||||||
|
|
||||||
slimserver = {
|
|
||||||
enable = true;
|
|
||||||
dataDir = "/var/lib/slimserver";
|
|
||||||
};
|
|
||||||
|
|
||||||
navidrome = {
|
navidrome = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
@ -49,4 +44,25 @@
|
|||||||
config.services.transmission.settings.peer-port
|
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"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user