add radicle-explorer module, and enable it on Cape

This commit is contained in:
ulic-youthlic 2025-05-12 16:19:44 +08:00
parent 6632dde007
commit 975bf38dc2
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
8 changed files with 42 additions and 1 deletions

View file

@ -0,0 +1,28 @@
{
lib,
config,
...
}: let
cfg = config.youthlic.programs.caddy;
in {
imports = [
./radicle-explorer.nix
];
options = {
youthlic.programs.caddy = {
enable = lib.mkEnableOption "caddy";
baseDomain = lib.mkOption {
type = lib.types.str;
example = "youthlic.fun";
};
};
};
config = lib.mkIf cfg.enable {
services.caddy = {
enable = true;
};
networking.firewall = {
allowedTCPPorts = [443];
};
};
}