forked from nyanloutre/nixos-config
enable podman autoprune and socket
This commit is contained in:
parent
e5c82197e7
commit
acde13cce6
2 changed files with 21 additions and 18 deletions
|
@ -57,23 +57,26 @@
|
|||
];
|
||||
};
|
||||
|
||||
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 = [
|
||||
"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"];
|
||||
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…
Add table
Add a link
Reference in a new issue