server-configs/machines/gerd.nix

77 lines
2.4 KiB
Nix
Raw Normal View History

2024-08-10 17:45:01 +00:00
{
2024-08-08 12:16:04 +00:00
imports = [
./../shared
2024-08-08 12:16:04 +00:00
./../shared/applications/server/acme.nix
2024-08-08 12:16:04 +00:00
./../shared/applications/server/nginx.nix
./../shared/applications/server/postgresql.nix # INCLUDES DATABASE BACKUPS
./../shared/applications/server/restic.nix # EXTERNAL BACKUP
2024-08-24 13:01:59 +00:00
./../shared/applications/state/postgresql.nix
2024-08-08 12:16:04 +00:00
./../shared/applications/state/ssh.nix
./gerd/services/fricloud-website.nix
2024-08-14 20:23:58 +00:00
./gerd/services/member-website
2024-12-22 20:56:46 +00:00
./gerd/services/lldap
./gerd/services/authelia
./gerd/services/forgejo
./gerd/services/teeworlds.nix
2024-08-09 20:45:15 +00:00
./gerd/services/murmur.nix
./gerd/services/hedgedoc.nix
2024-08-13 13:08:52 +00:00
./gerd/services/cyberchef.nix
./gerd/services/nextcloud.nix
./gerd/services/stalwart
2024-12-03 07:45:11 +00:00
./gerd/services/wger
./gerd/services/searx.nix
2024-08-24 13:02:21 +00:00
./gerd/services/element.nix
2024-08-24 13:02:21 +00:00
./gerd/services/matrix-synapse.nix
2024-08-08 12:16:04 +00:00
];
networking.hostName = "gerd";
networking.hostId = "e1166ac9";
mine = {
state.enable = true;
disks = {
disk = "/dev/sda";
pools.rpool.datasets = {
"safe/svcs/forgejo" = { mountpoint = "/srv/forgejo"; extra.options.quota = "5G"; };
"safe/svcs/hedgedoc" = { mountpoint = "/srv/hedgedoc"; extra.options.quota = "5G"; };
"safe/svcs/nextcloud" = { mountpoint = "/srv/nextcloud"; extra.options.quota = "5G"; };
"safe/svcs/stalwart" = { mountpoint = "/srv/stalwart"; extra.options.quota = "5G"; };
2024-08-24 13:02:21 +00:00
"safe/svcs/synapse" = { mountpoint = "/srv/synapse"; extra.options.quota = "5G"; };
2024-12-03 07:45:11 +00:00
"safe/svcs/wger" = { mountpoint = "/srv/wger"; extra.options.quota = "5G"; };
2024-08-24 13:01:59 +00:00
"safe/svcs/postgresql" = { mountpoint = "/srv/postgresql"; extra.options.quota = "5G"; };
"backup/postgresql" = { mountpoint = "/media/backup/postgresqlbackup"; extra.options.quota = "5G"; };
};
};
2024-08-08 17:37:50 +00:00
zrepl.enable = true;
ssh-on-boot.enable = true;
2024-08-08 12:16:04 +00:00
platforms.hetzner = {
2024-08-08 13:05:39 +00:00
enable = true;
network.address = [
"65.108.221.240/32"
"2a01:4f9:c012:743e::1/64"
];
};
2024-08-08 13:05:39 +00:00
};
2024-12-03 21:06:25 +00:00
# setup zramswap (we are very ram limited)
zramSwap = {
enable = true;
memoryPercent = 75;
algorithm = "lz4";
};
# TMP FIX FOR https://github.com/nix-community/impermanence/issues/229
boot.initrd.systemd.suppressedUnits = [ "systemd-machine-id-commit.service" ];
systemd.suppressedSystemUnits = [ "systemd-machine-id-commit.service" ];
system.stateVersion = "24.11";
2024-08-08 12:16:04 +00:00
}