diff options
Diffstat (limited to 'modules/services/tt-rss.nix')
-rw-r--r-- | modules/services/tt-rss.nix | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/modules/services/tt-rss.nix b/modules/services/tt-rss.nix deleted file mode 100644 index 4351065..0000000 --- a/modules/services/tt-rss.nix +++ /dev/null @@ -1,42 +0,0 @@ -{ config, lib, pkgs, ... }: - -with lib; -let - cfg = config.modules.services.tt-rss; -in -{ - options.modules.services.tt-rss = { - enable = mkEnableOption "Tiny Tiny RSS Client"; - domain = mkOption { type = types.str; }; - realHost = mkOption { type = types.str; default = "rss.${cfg.domain}"; }; - }; - - config = mkIf cfg.enable { - services.tt-rss = { - enable = true; - virtualHost = cfg.realHost; - selfUrlPath = "https://${cfg.realHost}"; - - themePackages = [ - pkgs.tt-rss-theme-feedly - ]; - - plugins = [ - "auth_internal" - "note" - ]; - - database = { - type = "pgsql"; - password = null; - host = "/run/postgresql"; - }; - - }; - - services.nginx.virtualHosts.${cfg.realHost} = { - forceSSL = true; - useACMEHost = cfg.domain; - }; - }; -} |