nixos-server/services
2024-05-25 15:13:27 +02:00
..
gitea.nix gitea mjau 2024-05-25 15:13:27 +02:00
postgres.nix gitea mjau 2024-05-25 15:13:27 +02:00
readme.md gitea mjau 2024-05-25 15:13:27 +02:00

Services

Contains files defining services.

Services are of the form:

{ pkgs, lib, ... }: {
  name = "name";
  config = { ... };
  ports = {
    tcp = [ 80 ];
    udp = [ 111 ];
    http = 80;
    forward = [ { container = 22; host = 22; proto = "tcp"; } ];
  };
  hosts = [ "myservice.domain.mjau" ];
  volumes = [
  {
    name = "myservice-storage";
    mountPoint = "/var/lib/whatever";
    readOnly = false;
  };
  ];
  hostConfig = { ... }
}