2021-01-19 00:14:57 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
# Miniflux configuration
|
|
|
|
services.miniflux = {
|
|
|
|
enable = true;
|
2021-03-30 10:05:51 +02:00
|
|
|
adminCredentialsFile = "/var/keys/miniflux";
|
2021-01-19 00:14:57 +01:00
|
|
|
config = {
|
|
|
|
BASE_URL = "https://rss.coolneng.duckdns.org";
|
|
|
|
RUN_MIGRATIONS = "1";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# Php-fpm pool for Wallabag
|
|
|
|
services.phpfpm.pools.wallabag = {
|
|
|
|
user = "nginx";
|
|
|
|
group = "nginx";
|
2021-06-20 17:10:52 +02:00
|
|
|
phpPackage = pkgs.php74;
|
2021-01-19 00:14:57 +01:00
|
|
|
settings = {
|
2021-02-03 05:28:10 +01:00
|
|
|
"listen.owner" = config.services.nginx.user;
|
|
|
|
"listen.group" = config.services.nginx.group;
|
|
|
|
"listen.mode" = 600;
|
|
|
|
"pm" = "ondemand";
|
2021-01-19 00:14:57 +01:00
|
|
|
"pm.max_children " = 4;
|
|
|
|
"pm.max_requests" = 32;
|
2021-02-03 05:28:10 +01:00
|
|
|
"env[WALLABAG_DATA]" = "/var/lib/wallabag";
|
2021-01-19 00:14:57 +01:00
|
|
|
};
|
2021-06-20 17:10:52 +02:00
|
|
|
phpEnv."PATH" = lib.makeBinPath [ pkgs.php74 ];
|
2021-01-19 00:14:57 +01:00
|
|
|
};
|
2021-02-03 05:28:10 +01:00
|
|
|
|
|
|
|
# Set environment variable pointing to wallabag configuration directory
|
|
|
|
environment.variables.WALLABAG_DATA = "/var/lib/wallabag";
|
2021-01-19 00:14:57 +01:00
|
|
|
}
|