27 lines
618 B
Nix
27 lines
618 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
{
|
||
|
# Podman setup
|
||
|
virtualisation = {
|
||
|
containers.enable = true;
|
||
|
podman = {
|
||
|
enable = true;
|
||
|
dockerCompat = true;
|
||
|
extraPackages = with pkgs; [ zfs ];
|
||
|
};
|
||
|
|
||
|
oci-containers = {
|
||
|
backend = "podman";
|
||
|
containers = {
|
||
|
# Openbooks configuration
|
||
|
openbooks = {
|
||
|
image =
|
||
|
"evanbuss/openbooks@sha256:16609c3da954715f8f98b5de6c838146914ae700b2a700b4d9aad8b23c9217da";
|
||
|
ports = [ "127.0.0.1:9000:80" ];
|
||
|
cmd = [ "--name" "bookworm" "--searchbot" "searchook" "--persist" ];
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|