dotfiles.nix/nixos/lavender/containers/homepage/default.nix
2023-07-30 09:13:40 +08:00

16 lines
368 B
Nix

{ ... }:
{
# Homepage
virtualisation.oci-containers.containers."homepage" = {
autoStart = true;
image = "ghcr.io/benphelps/homepage:latest";
volumes = [
"/srv/containers/homepage:/app/config"
"/srv/data:/srv/data:ro"
"/var/run/docker.sock:/var/run/docker.sock" # pass local proxy
];
extraOptions = ["--network=host"];
};
}