nix-config/features/server/services/freshrss.nix

33 lines
548 B
Nix
Raw Normal View History

2024-07-15 16:50:14 +02:00
{ config, lib, ... }:
2024-07-17 14:43:03 +02:00
with lib;
let
cfg = config.freshrss;
in
2024-07-15 16:27:23 +02:00
{
2024-07-17 14:43:03 +02:00
options = {
freshrss.url = mkOption {
type = types.str;
default = "http://192.168.1.177:3005";
2024-07-15 19:06:16 +02:00
};
2024-07-15 18:47:34 +02:00
};
2024-07-17 14:43:03 +02:00
2024-07-17 14:58:00 +02:00
config = {
2024-07-17 14:43:03 +02:00
sops.secrets = {
2024-08-25 12:07:50 +02:00
freshrss_username = { };
freshrss_password = { };
2024-07-17 14:43:03 +02:00
};
2024-07-15 18:47:34 +02:00
2024-07-17 14:43:03 +02:00
services.freshrss = {
enable = true;
language = "fr";
2024-08-25 12:07:50 +02:00
defaultUser = "";
2024-07-17 14:43:03 +02:00
baseUrl = cfg.url;
passwordFile = config.sops.secrets.freshrss_password.path;
database = {
type = "sqlite";
};
2024-07-15 16:27:23 +02:00
};
};
}