Compare commits
2 Commits
5b1cc90b6f
...
312c1e00a9
Author | SHA1 | Date | |
---|---|---|---|
312c1e00a9 | |||
d271a36f7e |
@ -25,6 +25,9 @@
|
|||||||
tmp.useTmpfs = true;
|
tmp.useTmpfs = true;
|
||||||
|
|
||||||
kernel.sysctl."net.ipv6.conf.all.forwarding" = true;
|
kernel.sysctl."net.ipv6.conf.all.forwarding" = true;
|
||||||
|
|
||||||
|
# Enabling both boot.enableContainers & virtualisation.containers on system.stateVersion < 22.05 is unsupported
|
||||||
|
enableContainers = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
documentation.nixos.enable = false;
|
documentation.nixos.enable = false;
|
||||||
|
@ -40,6 +40,8 @@
|
|||||||
ImageCacheSize = 0;
|
ImageCacheSize = 0;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
slimserver.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.transmission.serviceConfig = {
|
systemd.services.transmission.serviceConfig = {
|
||||||
@ -56,28 +58,4 @@
|
|||||||
config.services.transmission.settings.peer-port
|
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