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-07-17 19:38:20 +02:00
|
|
|
freshrss_username = {
|
2024-08-12 16:12:07 +02:00
|
|
|
sopsFile = ../../secrets/freshrss.yaml;
|
2024-07-17 19:38:20 +02:00
|
|
|
};
|
|
|
|
freshrss_password = {
|
2024-08-12 16:12:07 +02:00
|
|
|
sopsFile = ../../secrets/freshrss.yaml;
|
2024-07-17 19:38:20 +02:00
|
|
|
};
|
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";
|
|
|
|
defaultUser = config.sops.secrets.freshrss_username;
|
|
|
|
baseUrl = cfg.url;
|
|
|
|
passwordFile = config.sops.secrets.freshrss_password.path;
|
|
|
|
database = {
|
|
|
|
type = "sqlite";
|
|
|
|
};
|
2024-07-15 16:27:23 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|