collabora + posgres.enable check
This commit is contained in:
parent
e726ebedc1
commit
b66baa6c19
@ -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;
|
||||
|
||||
@ -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";
|
||||
|
||||
@ -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";
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user