dotfiles/nixos/boxes/vpsfree1/rss.nix

32 lines
766 B
Nix
Raw Normal View History

2023-08-13 17:00:41 +01:00
{
config,
pkgs,
inputs,
2023-11-12 11:53:05 +00:00
system,
2023-08-13 17:00:41 +01:00
lib,
...
}: let
2022-10-22 20:34:06 +01:00
domain = "news.cyplo.dev";
in {
2023-11-12 11:53:05 +00:00
disabledModules = ["services/web-apps/freshrss.nix"];
imports = [../nginx.nix "${inputs.nixpkgs-nixos-unstable}/nixos/modules/services/web-apps/freshrss.nix"];
2022-10-22 20:34:06 +01:00
services.nginx.virtualHosts."${domain}" = {
forceSSL = true;
enableACME = true;
2022-10-22 20:34:06 +01:00
};
sops.secrets."freshrss-password" = {
sopsFile = ./rss.sops.yaml;
owner = "freshrss";
};
services.freshrss = {
enable = true;
2023-11-12 11:53:05 +00:00
package = inputs.nixpkgs-nixos-unstable.legacyPackages."${system}".freshrss;
virtualHost = domain;
baseUrl = "https://${domain}";
database.type = "sqlite";
defaultUser = "cyryl";
passwordFile = config.sops.secrets.freshrss-password.path;
2022-10-22 20:34:06 +01:00
};
}