hosts/ni/services/rss-reader: init

This commit is contained in:
Gabriel Arazas 2024-12-31 14:16:34 +08:00
parent afff3653c5
commit e1007920d2
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
4 changed files with 57 additions and 0 deletions

View File

@ -22,6 +22,7 @@
services.mail-archive.enable = true; services.mail-archive.enable = true;
services.reverse-proxy.enable = true; services.reverse-proxy.enable = true;
services.download-media.enable = true; services.download-media.enable = true;
services.rss-reader.enable = true;
setups = { setups = {
desktop.enable = true; desktop.enable = true;
development.enable = true; development.enable = true;

View File

@ -9,6 +9,7 @@
./services/reverse-proxy.nix ./services/reverse-proxy.nix
./services/monitoring.nix ./services/monitoring.nix
./services/download-media ./services/download-media
./services/rss-reader
./services/penpot ./services/penpot
./setups/desktop.nix ./setups/desktop.nix
./setups/development.nix ./setups/development.nix

View File

@ -0,0 +1,33 @@
{ config, lib, foodogsquaredLib, ... }:
let
hostCfg = config.hosts.ni;
cfg = hostCfg.services.rss-reader;
port = config.state.ports.miniflux.value;
in
{
options.hosts.ni.services.rss-reader.enable =
lib.mkEnableOption "preferred RSS reader service";
config = lib.mkIf cfg.enable {
sops.secrets = foodogsquaredLib.sops-nix.getSecrets ./secrets.yaml {
"miniflux/admin" = {};
};
state.ports.miniflux.value = 9640;
services.miniflux = {
enable = true;
adminCredentialsFile = config.sops.secrets."miniflux/admin".path;
config = {
LISTEN_ADDR = "127.0.0.1:${builtins.toString port}";
BASE_URL = "http://rss.ni.internal";
};
};
services.nginx.virtualHosts."rss.ni.internal" = {
locations."/".proxyPass = "http://localhost:${builtins.toString port}";
};
};
}

View File

@ -0,0 +1,22 @@
miniflux:
admin: ENC[AES256_GCM,data:TMDKcG9rp1tA+FLEgogpH7e3sFUKAKOKyFe9o2g7It/nELNroLDRgh6kgbRsqIEqeeAzENi9yR27bg==,iv:pwHRAmLSR1oDwH8wzS+tFQikocNmjrYWeS3H9M/9pzc=,tag:VRiEWHb17dcMiTDPOh7vqg==,type:str]
sops:
kms: []
gcp_kms: []
azure_kv: []
hc_vault: []
age:
- recipient: age1jxna9vm7nx4g69s84qgjptxvuzszcypf2rfk4ss2lyhnpe3yxdnqusu6jp
enc: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBwWjd2TC95NFQ4VXBheVlP
TDUwajluNHhsY1ZPSlYxMlN1L25EZzhjQjBrCnFjWmI2WUZXNER0dkF6dVlNSUVs
MUcwNmFpODZmdHUvY1VlSEdtOTNqRFkKLS0tIHhkK3BWSXFTZS9DcHRPNG9hbzN5
bG5tektneTBvR29yTzVqNHZVYldKZXMKWgRWcu0kl6TwIeDTU1N4ofH1HY+G9/zh
GrppMajmw5ZLB3/e3xCzn4KaAEUkcLvJjq9AgZzjQm/PXhzlAxU4tg==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2024-12-31T08:27:39Z"
mac: ENC[AES256_GCM,data:/j7QFv8cuKL2TXEmtVgx9qxMqpBOJydOQmzbNOCY8ZxSIvB/lstmGk7Q4lByb51H6KBiSDdJFewXmQo+hosafOMX7cAY4rQvzD5zEylmntESMOKnEdG39zo0HKAcLDapUSsPjEj0L/BGqhyU6ZKAJgFrEwq9aWGS9NKHXvhMD+Q=,iv:BeURmnqEfro8JcRZ0CQ269D/UinK3jAeSVQavGCbODw=,tag:BLEnDVX3fxEP/KCsOVGO3Q==,type:str]
pgp: []
unencrypted_suffix: _unencrypted
version: 3.9.2