aboutsummaryrefslogtreecommitdiffstats
path: root/modules/by-name/ma
diff options
context:
space:
mode:
Diffstat (limited to 'modules/by-name/ma')
-rw-r--r--modules/by-name/ma/mastodon/module.nix27
1 files changed, 16 insertions, 11 deletions
diff --git a/modules/by-name/ma/mastodon/module.nix b/modules/by-name/ma/mastodon/module.nix
index 895428d..84f3ec8 100644
--- a/modules/by-name/ma/mastodon/module.nix
+++ b/modules/by-name/ma/mastodon/module.nix
@@ -37,16 +37,22 @@ in {
owner = "mastodon";
group = "mastodon";
};
- vhack.persist.directories = [
- {
- directory = "/var/lib/mastodon";
- user = "mastodon";
- group = "mastodon";
- mode = "0700";
- }
- ];
- vhack.postgresql.enable = true;
+ vhack = {
+ persist.directories = [
+ {
+ directory = "/var/lib/mastodon";
+ user = "mastodon";
+ group = "mastodon";
+ mode = "0700";
+ }
+ ];
+
+ postgresql.enable = true;
+
+ nginx.enable = true;
+ };
+
services.mastodon = {
enable = true;
@@ -54,7 +60,7 @@ in {
# Unstable Mastodon package, used if
# security updates aren't backported.
- #package = applyPatches pkgs-unstable.mastodon;
+ #package = applyPatches pkgsUnstable.mastodon;
localDomain =
if cfg.enableTLD
@@ -75,7 +81,6 @@ in {
};
};
- vhack.nginx.enable = true;
services.nginx = {
enable = true;
recommendedProxySettings = true; # required for redirections to work