nixos-server/services
2024-05-31 10:36:14 +02:00
..
blog.nix blog 2024-05-30 21:57:23 +02:00
gitea.nix backups 2024-05-31 10:36:14 +02:00
nfs.nix backups 2024-05-31 10:36:14 +02:00
postgres.nix backups 2024-05-31 10:36:14 +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 = { ... }
}