diff --git a/hosts/Hevana/default.nix b/hosts/Hevana/default.nix index 4850d7e..3cd7078 100644 --- a/hosts/Hevana/default.nix +++ b/hosts/Hevana/default.nix @@ -27,6 +27,7 @@ let languagetool.url netdata.url qbittorrent.url + rss.url ]; in { @@ -248,6 +249,15 @@ in ]; }; }; + rss = { + enable = true; + home = "${services-root}/freshrss"; + url = config.secrets.services.rss.url; + auth = with config.secrets.services.rss.auth; { + user = user; + password = password; + }; + }; ssh = { enable = true; ports = [ config.secrets.hosts.hevana.ssh.port ]; diff --git a/modules/secrets/default.nix b/modules/secrets/default.nix index f6b3fc7..a07003e 100644 --- a/modules/secrets/default.nix +++ b/modules/secrets/default.nix @@ -1,108 +1,112 @@ -U2FsdGVkX19USw6XheqcSEjdoumO7SJGW+Qm4tMjtredkCsIRTRp7OBxFKyOcieE -s9feEZ3DwJlMxXKOsgtd0bvcPPDFFUyOzSgFAEFP+IDFE54C0P521WxW7fDTZj25 -BKTz2ZO9W6t5HpiyF9R9FbK2fTNs2gI7arCw2LHnJzb2BnzUsDkSDH4oplKchtmA -ETBBI1PzVAJklVesXvWOysUjDRIFuF3KbeoC3Lu9YTtKDrRFgwAOy+zX8IGs8RTu -0D19+y3Wl5qfKYNum20W0r6QHM41tM3MrzQzd6qoliNMdEZ3YkTDzYymdOjsLK1t -N7JLd/JmSIU6/pXIV4ZOQWCk1Rpl+Wv/3zqieFhB2d2MEQ/R8JbuTN+Is5bar44u -I87Kp3Xtmtt88bZoDKhduL5Q9O2koHoP1v2UsY0KXweg08WMwVeaoI27IJpTd7/D -/FbHYJy26dqZKEQpvFnl/rG9MEbLLh9na0SamX4OCNsBMNAgUQ9AvDzJQ+5UaVmA -ctlk5hXRNBitkQr5g5/hUir9bmjTlYlxb4DyvIOYUjaOkYc+5mAaphfrN25S/MiC -OWLUo5x4+FpEbfNuzOf5dye+ucZyclJXTzNDR59ALnGCRARnx5Gh3ArRVgpE911k -b+DzWrGCzcrwQUclEoJYEJt0GQqdSiTj1141NU+z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wN33uV +leCpBTo00C7VrRxx8xeNR7GBsW9qSss+K1zPNr+snWXOQcN2hi4n+89jL2Lvzq/U +2RIDxvejnApHTcpF9Aj1GISw9B57VAWXhMLE16FPYPF7NuhJz00eRWf0RRylmr1s +W0ArForEI+tvKQmkL+FLezTEzNBsXckxdDV7r2VvBJrhhIE92022VsCtYaufw68W +bDZHJ2ngdSfDvr4MLtFqZk77kRbVJMNbLrHal/l33hujdMWBCplE1eCWyIyfrVtU +qjMLxd2S8bRutPGyqjF6WKdsWVeAtIbbC6utdrJJidEnB2RXNYYYD2xQRfAPfKZN +n8o+5BVVniTugounVX7yCwT6bbGAigodtNDYjNw8TuWAPBRXWUXuqYd1fNvwSuu2 +NVL4Kz0Y8TqIJlaSqERtvloEb3iaDu82zxDEKCKwzSXd3tzbkF9wM7wVAh1VfZJx +5ab+d1+nDjffafKt1c3+npusiAWfKyZiSogzutgRn6dI37QcYGE3NAs+H/IS7a0R +b7E1OKe1sYaR0h4tfHJ+SfOC1msK5itiMWqiUaHDuEBcmn1qGSwhPePJ4D5U1380 +949SQ0Wo9LF2FC7n32+ntPXBTWbBNvAcz4qNMqxzojumPLCRtr5+GDnf34sEsBTS +jNVB5ZTZKUBcOrReUGC2X1bigbRE7corL19dkEaxzZI= diff --git a/modules/services/rss.nix b/modules/services/rss.nix new file mode 100644 index 0000000..f77931a --- /dev/null +++ b/modules/services/rss.nix @@ -0,0 +1,69 @@ +{ + pkgs, + config, + lib, + ... +}: +let + cfg = config.aux.system.services.rss; +in +{ + options = { + aux.system.services.rss = { + enable = lib.mkEnableOption "Enables RSS hosting service via FreshRSS."; + auth = { + password = lib.mkOption { + default = ""; + type = lib.types.str; + description = "The password to use for the default user."; + example = "MySuperSecurePassword123"; + }; + user = lib.mkOption { + default = "ltuser"; + type = lib.types.str; + description = "The username to use for the default user."; + }; + }; + home = lib.mkOption { + default = ""; + type = lib.types.str; + description = "Where to store FreshRSS's files"; + example = "/home/freshrss"; + }; + url = lib.mkOption { + default = ""; + type = lib.types.str; + description = "The complete URL where FreshRSS is hosted."; + example = "https://rss.example.com"; + }; + }; + }; + + config = lib.mkIf cfg.enable { + services = { + freshrss = { + enable = true; + baseUrl = cfg.url; + dataDir = cfg.home; + defaultUser = cfg.auth.user; + passwordFile = pkgs.writeText "rss-defaultpassword" '' + ${cfg.auth.password} + ''; + authType = "form"; + database.type = "sqlite"; + + virtualHost = cfg.url; + }; + + nginx.virtualHosts."${cfg.url}" = { + useACMEHost = pkgs.util.getDomainFromURL cfg.url; + forceSSL = true; + }; + }; + + systemd.services = { + freshrss.unitConfig.RequiresMountsFor = cfg.home; + nginx.wants = [ config.systemd.services.freshrss.name ]; + }; + }; +}