refactored file

This commit is contained in:
Harry 2024-07-18 17:13:10 +02:00
parent d3361be972
commit 8785aabac6
4 changed files with 43 additions and 17 deletions

View file

@ -17,13 +17,6 @@ in
virtualisation.oci-containers = {
backend = "docker";
containers = {
flaresolverr = {
ports = [ "8191:8191" ];
image = "ghcr.io/flaresolverr/flaresolverr:latest";
environment = {
"LOG_LEVEL" = "info";
};
};
#TODO: move to Nix crafty controller bundle
crafty-controller = {
image = "registry.gitlab.com/crafty-controller/crafty-4:latest";
@ -44,16 +37,6 @@ in
"TZ" = "Europe/Paris";
};
};
freshrss = {
image = "lscr.io/linuxserver/freshrss:latest";
volumes = [ "/srv/freshrss/config:/config" ];
ports = [ "8888:80" ];
environment = {
"PUID" = "1000";
"GUID" = "1000";
"TZ" = "Europe/Paris";
};
};
};
};
};

View file

@ -0,0 +1,9 @@
{ config }:
{
imports = [
./crafty-controller.nix
./flaresolverr.nix
./freshrss.nix
];
}

View file

@ -0,0 +1,16 @@
{ config, ... }:
{
virtualisation.oci-containers = {
backend = "docker";
containers = {
flaresolverr = {
ports = [ "8191:8191" ];
image = "ghcr.io/flaresolverr/flaresolverr:latest";
environment = {
"LOG_LEVEL" = "info";
};
};
};
};
}

View file

@ -0,0 +1,18 @@
{ ... }:
{
virtualisation.oci-containers = {
backend = "docker";
containers = {
freshrss = {
image = "lscr.io/linuxserver/freshrss:latest";
volumes = [ "/srv/freshrss/config:/config" ];
ports = [ "8888:80" ];
environment = {
"PUID" = "1000";
"GUID" = "1000";
"TZ" = "Europe/Paris";
};
};
};
};
}