diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/services/rss.nix (renamed from modules/services/tt-rss.nix) | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/modules/services/tt-rss.nix b/modules/services/rss.nix index 4351065..7c44580 100644 --- a/modules/services/tt-rss.nix +++ b/modules/services/rss.nix @@ -2,38 +2,35 @@ with lib; let - cfg = config.modules.services.tt-rss; + cfg = config.modules.services.rss; in { - options.modules.services.tt-rss = { - enable = mkEnableOption "Tiny Tiny RSS Client"; + options.modules.services.rss = { + enable = mkEnableOption "RSS Aggregator"; domain = mkOption { type = types.str; }; realHost = mkOption { type = types.str; default = "rss.${cfg.domain}"; }; + secrets.admin-password = mkOption { type = types.str; description = "path to file containing admin password"; }; }; config = mkIf cfg.enable { - services.tt-rss = { + services.freshrss = { enable = true; virtualHost = cfg.realHost; - selfUrlPath = "https://${cfg.realHost}"; + baseUrl = "https://${cfg.realHost}"; - themePackages = [ - pkgs.tt-rss-theme-feedly - ]; - - plugins = [ - "auth_internal" - "note" - ]; + defaultUser = "admin"; + passwordFile = cfg.secrets.admin-password; database = { type = "pgsql"; - password = null; host = "/run/postgresql"; }; - }; + environment.persistence."/persist".directories = [ + "/var/lib/freshrss" + ]; + services.nginx.virtualHosts.${cfg.realHost} = { forceSSL = true; useACMEHost = cfg.domain; |