nixos-server/services
2024-06-21 13:48:12 +02:00
..
blog.nix no githug dependency for install 2024-06-21 13:46:23 +02:00
gitea.nix preparing for deployment 2024-06-21 13:48:12 +02:00
mariadb.nix gitea :) 2024-06-20 16:10:34 +02:00
media.nix nopass key for filesystems 2024-06-21 13:34:28 +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 = { ... }
}