nix-config/hosts/servers/alexandria/containerised.nix
2023-03-21 12:40:07 -03:00

63 lines
1.6 KiB
Nix

{ specialArgs, inputs, config, pkgs, lib, ... }:
{
virtualisation = {
podman.enable = true;
oci-containers = {
backend = "podman";
containers = {
"actual" = {
image = "jlongster/actual-server:latest";
ports = [
"${config.ports.actual}:5006"
];
volumes = [
"/data/actual:/data"
];
extraOptions = [
"--pull=always"
];
};
"cinny" = {
image = "ghcr.io/cinnyapp/cinny:latest";
ports = [
"${config.ports.cinny}:80"
];
extraOptions = [
"--pull=always"
];
};
"librespeed" = {
image = "lscr.io/linuxserver/librespeed:latest";
environment = {
TZ = "America/Bahia";
};
ports = [
"${config.ports.librespeed}:80"
];
extraOptions = [
"--pull=always"
];
};
"whoogle" = {
image = "benbusby/whoogle-search:latest";
environment = {
HTTPS_ONLY = "1";
WHOOGLE_CONFIG_DISABLE = "1";
WHOOGLE_CONFIG_LANGUAGE = "lang_en";
WHOOGLE_CONFIG_THEME = "system";
WHOOGLE_CONFIG_VIEW_IMAGE = "1";
WHOOGLE_CONFIG_GET_ONLY = "1";
WHOOGLE_CONFIG_STYLE = ".logo, .logo-div, footer { display:none !important }";
};
ports = [
"${config.ports.whoogle}:5000"
];
extraOptions = [
"--pull=always"
];
};
};
};
};
}