This commit is contained in:
Vivian 2024-10-31 15:39:24 +01:00
parent 448b9e7439
commit c5bc2e1a19
8 changed files with 221 additions and 184 deletions

View file

@ -8,7 +8,6 @@ in {
networking.interfaces.eth0.useDHCP = true;
# Better cache hits
environment.noXlibs = lib.mkForce false;
services = {
elasticsearch = {
enable = true;
@ -84,6 +83,8 @@ in {
AUTHORIZED_FETCH = "true";
MAX_TOOT_CHARS = "8192";
# https://github.com/cybrespace/cybrespace-meta/blob/master/s3.md;
# https://shivering-isles.com/Mastodon-and-Amazon-S3
S3_ENABLED = "true";

View file

@ -6,9 +6,35 @@
./fs.nix
];
boot.loader.systemd-boot.enable = true;
services = {
scrutiny = {
enable = true;
openFirewall = true;
influxdb.enable = true;
collector.enable = true;
collector.settings = {
host.id = "storage-vm";
devices = [
{
device = "/dev/disk/by-id/ata-QEMU_HARDDISK_QM00013";
ignore = true;
}
{
device = "/dev/disk/by-id/ata-QEMU_HARDDISK_QM00015";
ignore = true;
}
{
device = "/dev/disk/by-id/ata-QEMU_HARDDISK_QM00017";
ignore = true;
}
{
device = "/dev/disk/by-id/ata-QEMU_HARDDISK_QM00019";
ignore = true;
}
];
};
};
# Enable the OpenSSH daemon.
openssh.enable = true;
@ -55,6 +81,18 @@
};
};
users.groups.backup = {
gid = 10000;
members = [ "vivian" "syncthing" ];
};
services.syncthing = {
enable = true;
openDefaultPorts = true;
guiAddress = "0.0.0.0:8384";
group = "backup";
};
# Disable firewall, as NFS makes it annoying
networking.firewall.enable = false;