{ config, lib, pkgs, ... }:

let primary-ip = "10.0.0.3";

in {
  fudo.slynk.enable = true;

  networking = {
    interfaces = {
      enp3s0f0.useDHCP = false;
      enp3s0f1.useDHCP = false;
      enp4s0f0.useDHCP = false;
      enp4s0f1.useDHCP = false;

      extif0 = {
        useDHCP = false;
        ipv4.addresses = [{
          address = primary-ip;
          prefixLength = 22;
        }];
      };
    };
  };

  fudo.ipfs = {
    enable = true;
    users = [ "niten" ];
    api-address = "/ip4/${primary-ip}/tcp/5001";
  };

  # TODO: add camera
}