This commit is contained in:
2025-03-29 19:51:08 -06:00
parent fbc13d9cae
commit 9a05d06c6f
4 changed files with 33 additions and 2 deletions

View File

@@ -34,6 +34,7 @@ let
"mealie"
"firefly-iii"
"matrix-synapse"
"readeck"
];
in
{

View File

@@ -0,0 +1,25 @@
{ lib, config, ... }:
let
cfg = config.my.servers.readeck;
setup = import ./setup.nix { inherit lib config; };
in
{
options.my.servers.readeck = setup.mkOptions "readeck" "laters" 9546;
config = {
sops.secrets.readeck.sopsFile = ../../secrets/env.yaml;
services = {
readeck = {
enable = cfg.enable;
environmentFile = config.sops.secrets.readeck.path;
settings = {
main = {
log_level = "warn";
data_directory = "/var/lib/readeck";
};
server.port = cfg.port;
};
};
nginx.virtualHosts."${cfg.host}" = lib.mkIf cfg.enableProxy (setup.proxyReverse cfg);
};
};
}