forgeje: use 2222 port for ssh

server: move caddy to seperate module
This commit is contained in:
ooks-io 2024-11-01 12:45:18 +11:00
parent 52cb6d10bc
commit 90e096262b
9 changed files with 116 additions and 135 deletions

View file

@ -0,0 +1,16 @@
{
config,
lib,
...
}: let
inherit (lib) mkIf;
inherit (config.ooknet.server.webserver) caddy;
in {
config = mkIf caddy.enable {
users.groups.www = {};
services.caddy = {
enable = true;
group = "www";
};
};
}