mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-06 21:17:14 -06:00
25 lines
360 B
Nix
25 lines
360 B
Nix
{ flake, ... }:
|
|
let
|
|
inherit (flake.config.services.instances) caddy;
|
|
|
|
service = caddy;
|
|
|
|
in
|
|
{
|
|
services.caddy = {
|
|
enable = true;
|
|
};
|
|
users.users.${service.name}.extraGroups = [
|
|
"acme"
|
|
"nextcloud"
|
|
];
|
|
|
|
networking = {
|
|
firewall = {
|
|
allowedTCPPorts = [
|
|
service.ports.port0
|
|
service.ports.port1
|
|
];
|
|
};
|
|
};
|
|
}
|