Set up Wallabag in a new module

This commit is contained in:
2021-01-19 00:14:57 +01:00
parent 9c0f51c968
commit 8861a58958
4 changed files with 47 additions and 10 deletions

27
modules/information.nix Normal file
View File

@@ -0,0 +1,27 @@
{ config, lib, pkgs, ... }:
{
# Miniflux configuration
services.miniflux = {
enable = true;
adminCredentialsFile = "/var/keys/miniflux/admin";
config = {
BASE_URL = "https://rss.coolneng.duckdns.org";
RUN_MIGRATIONS = "1";
};
};
# Php-fpm pool for Wallabag
services.phpfpm.pools.wallabag = {
user = "nginx";
group = "nginx";
settings = {
"pm" = "dynamic";
"pm.start_servers" = 2;
"pm.max_children " = 4;
"pm.min_spare_servers " = 2;
"pm.max_spare_servers" = 4;
"pm.max_requests" = 32;
};
};
}