zion/modules/information.nix

64 lines
1.6 KiB
Nix
Raw Normal View History

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";
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
};
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
2022-12-20 14:03:09 +01:00
# Podman setup with ZFS
virtualisation = {
containers.enable = true;
containers.storage.settings.storage = {
driver = "zfs";
graphroot = "/var/lib/containers/storage";
runroot = "/run/containers/storage";
};
podman = {
enable = true;
dockerCompat = true;
extraPackages = with pkgs; [ zfs ];
};
# Openbooks configuration
oci-containers = {
backend = "podman";
containers = {
openbooks = {
2023-01-14 20:00:15 +01:00
image =
"evanbuss/openbooks@sha256:16609c3da954715f8f98b5de6c838146914ae700b2a700b4d9aad8b23c9217da";
2022-12-20 14:03:09 +01:00
ports = [ "127.0.0.1:9000:80" ];
2023-01-22 17:58:53 +01:00
cmd = [ "--name" "bookworm" "--searchbot" "searchook" ];
2022-12-20 14:03:09 +01:00
};
};
2022-05-02 01:49:40 +02:00
};
};
2022-12-20 14:03:09 +01:00
2021-01-19 00:14:57 +01:00
}