migrate slimserver to nixos module
This commit is contained in:
parent
5b1cc90b6f
commit
d271a36f7e
@ -40,6 +40,8 @@
|
||||
ImageCacheSize = 0;
|
||||
};
|
||||
};
|
||||
|
||||
slimserver.enable = true;
|
||||
};
|
||||
|
||||
systemd.services.transmission.serviceConfig = {
|
||||
@ -56,28 +58,4 @@
|
||||
config.services.transmission.settings.peer-port
|
||||
];
|
||||
};
|
||||
|
||||
virtualisation = {
|
||||
podman.autoPrune.enable = true;
|
||||
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 = [
|
||||
"10.30.0.1:9000:9000/tcp"
|
||||
"10.30.0.1:9090:9090/tcp"
|
||||
"10.30.0.1:3483:3483/tcp"
|
||||
"10.30.0.1:3483:3483/udp"
|
||||
];
|
||||
extraOptions = ["--pull=always"];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user