2024-11-20 05:46:40 +01:00
|
|
|
{ ... }:
|
|
|
|
{
|
|
|
|
boot.loader.grub = {
|
|
|
|
enable = true;
|
|
|
|
device = "/dev/vda";
|
|
|
|
};
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
hostName = "mastodon";
|
|
|
|
firewall = {
|
|
|
|
enable = true;
|
|
|
|
allowedTCPPorts = [ 80 8443 ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems = {
|
|
|
|
"/mnt/data" = {
|
|
|
|
device = "/dev/disk/by-label/data";
|
|
|
|
fsType = "ext4";
|
|
|
|
autoResize = true;
|
|
|
|
};
|
|
|
|
"/var/lib/mastodon/public-system" = {
|
|
|
|
depends = [ "/mnt/data" ];
|
|
|
|
device = "/mnt/data/mastodon";
|
|
|
|
fsType = "none";
|
2024-11-20 05:46:40 +01:00
|
|
|
options = [ "bind" ];
|
2024-11-20 05:46:40 +01:00
|
|
|
};
|
|
|
|
"/var/lib/postgresql" = {
|
|
|
|
depends = [ "/mnt/data" ];
|
|
|
|
device = "/mnt/data/postgresql";
|
|
|
|
fsType = "none";
|
2024-11-20 05:46:40 +01:00
|
|
|
options = [ "bind" ];
|
2024-11-20 05:46:40 +01:00
|
|
|
};
|
|
|
|
"/var/lib/private/opensearch/data" = {
|
|
|
|
depends = [ "/mnt/data" ];
|
|
|
|
device = "/mnt/data/opensearch";
|
|
|
|
fsType = "none";
|
2024-11-20 05:46:40 +01:00
|
|
|
options = [ "bind" ];
|
2024-11-20 05:46:40 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
system.stateVersion = "23.05";
|
|
|
|
}
|