1
0
Fork 0
dotfiles/system/nixos/flaresolverr.nix

24 lines
586 B
Nix
Raw Permalink Normal View History

2023-07-16 22:17:50 +00:00
{ lib, ... }:
2023-06-03 11:47:54 +00:00
{
virtualisation.oci-containers.containers.flaresolverr = {
image = "ghcr.io/flaresolverr/flaresolverr:latest";
ports = [ "192.168.42.2:8191:8191" ];
environment = {
"TZ" = "Etc/UTC";
"HOST" = "192.168.42.2";
"PORT" = "8191";
};
extraOptions = [
"--network=ns:/var/run/netns/wg"
"--label=com.centurylinklabs.watchtower.enable=true"
"--label=io.containers.autoupdate=registry"
];
};
systemd.services.podman-flaresolverr = {
bindsTo = [ "wg.service" ];
after = lib.mkForce [ "wg.service" ];
};
}