nixos/shill: Add Mastodon
This commit is contained in:
@@ -189,6 +189,12 @@ in
|
||||
(mkIf config.services.resolved.enable {
|
||||
my.tmproot.unsaved.ignore = [ "/etc/resolv.conf" ];
|
||||
})
|
||||
(mkIf config.services.nginx.enable {
|
||||
my.tmproot.unsaved.ignore = [ "/var/cache/nginx" ];
|
||||
})
|
||||
(mkIf config.services.mastodon.enable {
|
||||
my.tmproot.unsaved.ignore = [ "/var/lib/mastodon/.secrets_env" ];
|
||||
})
|
||||
(mkIf config.my.build.isDevVM {
|
||||
my.tmproot.unsaved.ignore = [ "/nix" ];
|
||||
|
||||
@@ -366,6 +372,20 @@ in
|
||||
};
|
||||
};
|
||||
})
|
||||
(mkIf config.services.mastodon.enable {
|
||||
my.tmproot.persistence.config.directories = with config.services.mastodon; [
|
||||
{
|
||||
directory = "/var/lib/mastodon/public-system";
|
||||
inherit user group;
|
||||
}
|
||||
{
|
||||
directory = "/var/lib/redis-mastodon";
|
||||
mode = "700";
|
||||
user = "redis-mastodon";
|
||||
group = "redis-mastodon";
|
||||
}
|
||||
];
|
||||
})
|
||||
]))
|
||||
]);
|
||||
|
||||
|
Reference in New Issue
Block a user