dotfiles.nix/nixos/viridian/containers/homepage/default.nix

16 lines
368 B
Nix
Raw Normal View History

2023-05-16 14:08:07 +08:00
{ ... }:
{
# Homepage
virtualisation.oci-containers.containers."homepage" = {
autoStart = true;
image = "ghcr.io/benphelps/homepage:latest";
volumes = [
"/srv/containers/homepage:/app/config"
2023-05-24 23:01:22 +08:00
"/srv/data:/srv/data:ro"
2023-07-29 08:30:44 +08:00
"/var/run/docker.sock:/var/run/docker.sock" # pass local proxy
2023-05-16 14:08:07 +08:00
];
2023-07-29 08:30:44 +08:00
extraOptions = ["--network=host"];
2023-05-16 14:08:07 +08:00
};
}