add radicle-explorer module, and enable it on Cape
This commit is contained in:
parent
6632dde007
commit
975bf38dc2
8 changed files with 42 additions and 1 deletions
28
nixos/modules/programs/caddy/default.nix
Normal file
28
nixos/modules/programs/caddy/default.nix
Normal 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];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue