syntax changes + all the arrs modules

This commit is contained in:
2024-06-14 18:10:56 -06:00
parent c80e097ba0
commit add0490415
13 changed files with 162 additions and 80 deletions

View File

@@ -0,0 +1,22 @@
{ lib, config, pkgs, proxyReverse, ... }: {
disabledModules = [ "services/web-apps/shiori.nix" ];
imports = [ ../../pkgs/shiori/shiori-service.nix ];
options.my.servers.shiori.enable = lib.mkEnableOption "enable";
config = lib.mkIf config.my.servers.shiori.enable {
services = {
shiori = {
enable = true;
port = 4368;
package = pkgs.callPackage ../../pkgs/shiori/shiori.nix { };
httpSecretKey = "password";
databaseUrl =
"postgres:///shiori?host=${config.my.postgresSocket}";
};
nginx = {
enable = true;
virtualHosts."copy.${config.my.domain}" =
proxyReverse config.my.servers.shiori.port // { };
};
};
};
}