diff --git a/modules/server/fedi/akkoma.nix b/modules/server/fedi/akkoma.nix index e69de29b..aeae570c 100644 --- a/modules/server/fedi/akkoma.nix +++ b/modules/server/fedi/akkoma.nix @@ -0,0 +1,16 @@ +{ config, lib, ... }: +with lib; +let cfg = config.void.server.fedi.akkoma; +in { + options.void.server.fedi.akkoma = { enable = mkEnableOption false; }; + + # :( + config = mkIf cfg.enable { + services = { + akkoma = { + enable = true; + package = pkgs.akkoma; + }; + }; + }; +} diff --git a/modules/server/postgresql.nix b/modules/server/postgresql.nix index 487ec7c3..8561436e 100644 --- a/modules/server/postgresql.nix +++ b/modules/server/postgresql.nix @@ -8,7 +8,7 @@ in { services.postgresql = { enable = true; package = pkgs.postgresql_17_jit; - ensureDatabases = [ "forgejo" ]; + ensureDatabases = [ "forgejo" "akkoma" ]; ensureUsers = [ { name = "postgres"; @@ -24,6 +24,10 @@ in { name = "forgejo"; ensureDBOwnership = true; } + { + name = "akkoma"; + ensureDBOwnership = true; + } ]; # Thank you NotAShelf # https://github.com/NotAShelf/nyx/blob/d407b4d6e5ab7f60350af61a3d73a62a5e9ac660/modules/core/roles/server/system/services/databases/postgresql.nix#L74