refactor containers

This commit is contained in:
♥ Minnie ♥ 2024-01-23 09:45:42 +08:00
parent 1d23c89f58
commit 2a15f00fa1
No known key found for this signature in database
11 changed files with 195 additions and 174 deletions

View file

@ -0,0 +1,24 @@
{ ... }:
{
virtualisation.oci-containers.containers = {
homarr = {
autoStart = true;
image = "ghcr.io/ajnart/homarr:latest";
ports = [
"7575:7575/tcp" # WebUI
];
volumes = [
# Container data
"/srv/containers/homarr/configs:/app/data/configs:rw"
"/srv/containers/homarr/icons:/app/public/icons:rw"
"/srv/containers/homarr/data:/data:rw"
# Docker Integration
"/var/run/docker.sock:/var/run/docker.sock:ro"
];
extraOptions = [
"--network=host"
];
};
};
}