50 lines
No EOL
1.1 KiB
Nix
50 lines
No EOL
1.1 KiB
Nix
{ inputs, ... }:
|
|
{
|
|
flake.modules.nixos.searxng =
|
|
{ lib, ... }:
|
|
{
|
|
|
|
imports = with inputs.self.modules.nixos; [
|
|
podman
|
|
];
|
|
|
|
virtualisation.oci-containers.containers."searxng" = {
|
|
image = "docker.io/searxng/searxng:latest";
|
|
volumes = [
|
|
"/DockerData/configs/searxng/:/etc/searxng"
|
|
];
|
|
labels = {
|
|
"io.containers.autoupdate" = "registry";
|
|
};
|
|
ports = [
|
|
"8885:8080"
|
|
];
|
|
devices = [
|
|
"/dev/dri:/dev/dri"
|
|
];
|
|
environment = {
|
|
"TZ" = "America/New_York";
|
|
"SEARXNG_BASE_URL"="https://search.aquaticservers.com/";
|
|
};
|
|
};
|
|
|
|
systemd = {
|
|
services = {
|
|
"podman-searxng" = {
|
|
serviceConfig = {
|
|
Restart = lib.mkOverride 90 "always";
|
|
};
|
|
partOf = [ "podman-compose-searxng-root.target" ];
|
|
wantedBy = [ "podman-compose-searxng-root.target" ];
|
|
};
|
|
};
|
|
|
|
targets = {
|
|
"podman-compose-searxng-root" = {
|
|
wantedBy = [ "multi-user.target" ];
|
|
};
|
|
};
|
|
};
|
|
|
|
};
|
|
} |