2024-08-10 17:45:01 +00:00
|
|
|
{
|
2024-08-08 12:16:04 +00:00
|
|
|
imports = [
|
2024-08-08 17:02:02 +00:00
|
|
|
./../shared
|
2024-08-08 12:16:04 +00:00
|
|
|
|
2024-08-08 17:38:02 +00:00
|
|
|
./../shared/applications/server/acme.nix
|
2024-08-08 12:16:04 +00:00
|
|
|
./../shared/applications/server/nginx.nix
|
2024-12-07 18:28:04 +00:00
|
|
|
./../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
|
|
|
|
|
2024-08-10 15:49:02 +00:00
|
|
|
./gerd/services/fricloud-website.nix
|
2024-08-14 20:23:58 +00:00
|
|
|
./gerd/services/member-website
|
2024-08-12 12:36:01 +00:00
|
|
|
./gerd/services/lldap.nix
|
|
|
|
./gerd/services/authelia
|
2024-08-12 11:56:34 +00:00
|
|
|
./gerd/services/forgejo
|
2024-08-08 17:00:37 +00:00
|
|
|
./gerd/services/teeworlds.nix
|
2024-08-09 20:45:15 +00:00
|
|
|
./gerd/services/murmur.nix
|
2024-08-11 11:39:24 +00:00
|
|
|
./gerd/services/hedgedoc.nix
|
2024-08-13 13:08:52 +00:00
|
|
|
./gerd/services/cyberchef.nix
|
2024-08-14 19:29:57 +00:00
|
|
|
./gerd/services/nextcloud.nix
|
2024-08-22 11:42:34 +00:00
|
|
|
./gerd/services/stalwart
|
2024-12-03 07:45:11 +00:00
|
|
|
./gerd/services/wger
|
2024-08-24 13:02:21 +00:00
|
|
|
|
2024-08-29 17:22:12 +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";
|
|
|
|
|
2024-08-08 12:36:04 +00:00
|
|
|
mine = {
|
|
|
|
state.enable = true;
|
2024-08-08 17:02:02 +00:00
|
|
|
disks = {
|
|
|
|
disk = "/dev/sda";
|
|
|
|
pools.rpool.datasets = {
|
|
|
|
"safe/svcs/forgejo" = { mountpoint = "/srv/forgejo"; extra.options.quota = "5G"; };
|
2024-08-11 11:39:24 +00:00
|
|
|
"safe/svcs/hedgedoc" = { mountpoint = "/srv/hedgedoc"; extra.options.quota = "5G"; };
|
2024-08-14 19:29:57 +00:00
|
|
|
"safe/svcs/nextcloud" = { mountpoint = "/srv/nextcloud"; extra.options.quota = "5G"; };
|
2024-08-21 11:20:54 +00:00
|
|
|
"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:02:02 +00:00
|
|
|
};
|
|
|
|
};
|
2024-08-08 12:36:04 +00:00
|
|
|
|
2024-08-08 17:37:50 +00:00
|
|
|
zrepl.enable = true;
|
|
|
|
|
2024-08-08 17:02:02 +00:00
|
|
|
ssh-on-boot.enable = true;
|
2024-08-08 12:16:04 +00:00
|
|
|
|
2024-08-08 17:02:02 +00:00
|
|
|
platforms.hetzner = {
|
2024-08-08 13:05:39 +00:00
|
|
|
enable = true;
|
2024-08-08 17:02:02 +00:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2024-11-05 17:31:01 +00:00
|
|
|
# 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" ];
|
|
|
|
|
|
|
|
|
2024-08-16 12:19:37 +00:00
|
|
|
system.stateVersion = "24.11";
|
2024-08-08 12:16:04 +00:00
|
|
|
}
|