2021-01-19 00:14:57 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
# Miniflux configuration
|
|
|
|
services.miniflux = {
|
|
|
|
enable = true;
|
2022-06-06 23:12:54 +02:00
|
|
|
adminCredentialsFile = config.age.secrets.miniflux.path;
|
2021-01-19 00:14:57 +01:00
|
|
|
config = {
|
|
|
|
BASE_URL = "https://rss.coolneng.duckdns.org";
|
|
|
|
RUN_MIGRATIONS = "1";
|
2022-03-21 16:24:44 +01:00
|
|
|
DISABLE_HSTS = "1";
|
2021-01-19 00:14:57 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# Php-fpm pool for Wallabag
|
|
|
|
services.phpfpm.pools.wallabag = {
|
|
|
|
user = "nginx";
|
|
|
|
group = "nginx";
|
|
|
|
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
|
|
|
};
|
2022-05-02 01:55:28 +02:00
|
|
|
phpEnv."PATH" = lib.makeBinPath [ pkgs.php ];
|
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";
|
2022-05-02 01:49:40 +02:00
|
|
|
|
|
|
|
# Openbooks configuration
|
|
|
|
virtualisation.oci-containers.containers = {
|
|
|
|
openbooks = {
|
2022-09-07 20:16:26 +02:00
|
|
|
image = "evanbuss/openbooks:latest";
|
2022-05-02 01:49:40 +02:00
|
|
|
ports = [ "127.0.0.1:9000:80" ];
|
2022-05-28 16:46:00 +02:00
|
|
|
extraOptions = [ "--label=io.containers.autoupdate=registry" ];
|
2022-05-02 01:49:40 +02:00
|
|
|
};
|
|
|
|
};
|
2021-01-19 00:14:57 +01:00
|
|
|
}
|