summary refs log tree commit diff
path: root/services/akkoma
AgeCommit message (Expand)Author
2024-12-07Convert most services to streamed images and foundationMel
2024-11-24Run FediFetcher with Akkoma servicesMel
2024-11-15Factor out base images and postgres images with fixed hashesMel
2024-11-14Akkoma service configurationMel
>33 34 35 36 37 38 39
{ config, lib, pkgs, ... }:

{
  boot = {
    loader.grub = {
      enable = true;
      device = "/dev/sda";
    };

    kernelModules = [ "wireguard" ];
  };

  networking = {
    nameservers = [
      "1.1.1.1" "1.0.0.1"
    ];
    # networkd handles our network
    useDHCP = false;
  };

  systemd.network.enable = true;
  systemd.network.networks."10-wan" = {
    name = "enp6s16";
    # ipv4 gets it's config through dhcp just fine!
    DHCP = "ipv4";
    # as is usual, the dhcp ipv6 configuration is faulty,
    # and does not add the correct default route.
    address = [ "2604:2dc0:303::4:0:d9" ];
    routes = [ { Gateway = "2604:2dc0:303::6a7e"; } ];
  };

  zramSwap = {
    enable = true;
    algorithm = "zstd";
    swapDevices = 1;
    memoryPercent = 50;
  };
}