nix-config/features/freshrss.nix

37 lines
685 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 = {
freshrss_username = {
sopsFile = ../secrets/freshrss.yaml;
};
freshrss_password = {
sopsFile = ../secrets/freshrss.yaml;
};
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
};
};
}