module overhaul

module
This commit is contained in:
atagen 2025-01-24 16:59:48 +11:00
parent 8fe3ddc38e
commit ae78cb7026
12 changed files with 1127 additions and 164 deletions

View file

@ -1,9 +1,13 @@
{ pkgs, ... }:
{
pkg = pkgs.caddy;
args = "run -c %CFG% --adapter caddyfile";
config = ''
http://*:8080 {
respond "hello"
}
'';
# simplest possible concrete service definition
serviceDefs.caddy = {
pkg = pkgs.caddy;
args = "run -c %CFG% --adapter caddyfile";
config.text = ''
http://*:8888 {
respond "hello"
}
'';
};
}