collabora + posgres.enable check

This commit is contained in:
Danilo Reyes 2024-06-15 00:54:22 -06:00
parent e726ebedc1
commit b66baa6c19
5 changed files with 91 additions and 86 deletions

View File

@ -37,7 +37,7 @@
adguardhome.enable = false;
audiobookshelf.enable = false;
bazarr.enable = false;
collabora.enable = false;
collabora.enable = true;
flame.enable = true;
flameSecret.enable = true;
go-vod.enable = false;

View File

@ -1,6 +1,7 @@
{ lib, config, ... }: {
options.my.servers.paperless.enable = lib.mkEnableOption "enable";
config = lib.mkIf config.my.servers.paperless.enable {
config = lib.mkIf
(config.my.servers.paperless.enable && config.my.servers.postgres.enable) {
services.paperless = {
enable = true;
address = "0.0.0.0";

View File

@ -4,7 +4,8 @@ let
url = "tracker.${config.my.domain}";
in {
options.my.servers.ryot.enable = lib.mkEnableOption "enable";
config = lib.mkIf config.my.servers.ryot.enable {
config = lib.mkIf
(config.my.servers.ryot.enable && config.my.servers.postgres.enable) {
virtualisation.oci-containers = {
backend = "docker";
containers.ryot = {
@ -17,7 +18,8 @@ in {
VIDEO_GAMES_TWITCH_CLIENT_ID = "tfu0hw0zbdbu4lco4h72nqkb8krxp9";
VIDEO_GAMES_TWITCH_CLIENT_SECRET = "582ecfb01ihv6wnt8zbc9pf3hs9p54";
};
volumes = [ "${config.my.postgresSocket}:${config.my.postgresSocket}" ];
volumes =
[ "${config.my.postgresSocket}:${config.my.postgresSocket}" ];
labels = {
"flame.type" = "application";
"flame.name" = "Ryot";

View File

@ -2,7 +2,8 @@
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 {
config = lib.mkIf
(config.my.servers.shiori.enable && config.my.servers.postgres.enable) {
services = {
shiori = {
enable = true;

View File

@ -1,6 +1,7 @@
{ lib, config, pkgs, proxyReverse, ... }: {
options.my.servers.vaultwarden.enable = lib.mkEnableOption "enable";
config = lib.mkIf config.my.servers.vaultwarden.enable {
config = lib.mkIf (config.my.servers.vaultwarden.enable
&& config.my.servers.postgres.enable) {
services = {
vaultwarden = {
enable = true;