nix-configs/nixos-modules/docker-calibre-web.nix

38 lines
930 B
Nix
Raw Normal View History

2024-10-02 14:58:27 -04:00
{ pkgs, ... }:
2024-10-01 12:52:39 -04:00
{
virtualisation = {
containers.enable = true;
podman.enable = true;
oci-containers.containers = {
calibre-web = {
2024-10-02 14:58:27 -04:00
image = "my-calibre-web:latest";
imageFile = pkgs.dockerTools.buildLayeredImage {
name = "my-calibre-web";
tag = "latest";
contents = [ pkgs.busybox ];
config.Cmd = [
"${pkgs.calibre-web}/bin/calibre-web"
"-p"
"/config/app.db"
"-g"
"/config/gdrive.db"
"-i"
"0.0.0.0"
];
};
2024-10-01 12:52:39 -04:00
volumes = [
"calibre-web-config:/config"
"/video-data:/data"
];
environment.TZ = "America/New_York";
2024-10-02 14:58:27 -04:00
labels = {
swag = "enable";
swag_url = "calibre-web.icanttype.org";
swag_port = "8083";
};
2024-10-24 12:44:23 -04:00
extraOptions = [ "--network=www" ];
2024-10-01 12:52:39 -04:00
};
};
};
}