Fix Mastodon from being wiped
This commit is contained in:
parent
88629d3f9b
commit
8d326632d3
4 changed files with 9 additions and 3 deletions
|
@ -5,6 +5,7 @@
|
||||||
ffmpeg
|
ffmpeg
|
||||||
ffmpegthumbnailer
|
ffmpegthumbnailer
|
||||||
playerctl
|
playerctl
|
||||||
|
pngquant
|
||||||
puddletag
|
puddletag
|
||||||
pulsemixer
|
pulsemixer
|
||||||
spotdl
|
spotdl
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
{
|
{
|
||||||
services.nginx.virtualHosts."${config.services.hedgedoc.settings.domain}" = lib.mkIf config.services.hedgedoc.enable {
|
services.nginx.virtualHosts."hedgedoc.${config.vars.primeDomain}" = lib.mkIf config.services.hedgedoc.enable {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
|
|
|
@ -5,6 +5,8 @@
|
||||||
localDomain = "social.${config.vars.primeDomain}";
|
localDomain = "social.${config.vars.primeDomain}";
|
||||||
streamingProcesses = 4;
|
streamingProcesses = 4;
|
||||||
configureNginx = true;
|
configureNginx = true;
|
||||||
|
|
||||||
|
# Set up email security
|
||||||
smtp = {
|
smtp = {
|
||||||
createLocally = false;
|
createLocally = false;
|
||||||
host = "mx.${config.vars.mailDomain}";
|
host = "mx.${config.vars.mailDomain}";
|
||||||
|
@ -15,6 +17,9 @@
|
||||||
passwordFile = pkgs.writeText "smtp_pass.txt" config.secrets.mailPass.nixfoxNoReply;
|
passwordFile = pkgs.writeText "smtp_pass.txt" config.secrets.mailPass.nixfoxNoReply;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
environment.persistence."/persist".directories = [ "/var/lib/mastodon" ];
|
environment.persistence."/persist".directories = [
|
||||||
|
"/var/lib/mastodon"
|
||||||
|
"/var/lib/postgresql"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
symlinks = {
|
symlinks = {
|
||||||
"plugins/SkinsRestorer.jar" = builtins.fetchurl {
|
"plugins/SkinsRestorer.jar" = builtins.fetchurl {
|
||||||
url = "https://github.com/SkinsRestorer/SkinsRestorer/releases/download/15.7.6/SkinsRestorer.jar";
|
url = "https://github.com/SkinsRestorer/SkinsRestorer/releases/download/15.7.6/SkinsRestorer.jar";
|
||||||
sha256 = "14nl9mi958bfqwqz9182cxj7m6l15kalq3wjmjqzy50s52si35wf";
|
sha256 = "1zw946jh74kpmg2mga4zc0x8jp98a5i1qvmr20acwv9n0hh81yvg";
|
||||||
};
|
};
|
||||||
"plugins/ViaVersion.jar" = builtins.fetchurl {
|
"plugins/ViaVersion.jar" = builtins.fetchurl {
|
||||||
url = "https://github.com/ViaVersion/ViaVersion/releases/download/5.4.1/ViaVersion-5.4.1.jar";
|
url = "https://github.com/ViaVersion/ViaVersion/releases/download/5.4.1/ViaVersion-5.4.1.jar";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue