small changes to deluge

This commit is contained in:
2025-07-20 16:22:48 +02:00
parent 512afb0bcf
commit 2deebab1fd

View File

@@ -9,21 +9,28 @@
in { in {
options.server.deluge = { options.server.deluge = {
enable = lib.mkEnableOption "Enable Deluge"; enable = lib.mkEnableOption "Enable Deluge";
category = lib.mkOption { url = lib.mkOption {
type = lib.types.str; type = lib.types.str;
default = "Arr"; default = "deluge.${config.server.domain}";
}; };
homepage = lib.mkOption { homepage.name = lib.mkOption {
type = lib.types.attrs; type = lib.types.str;
default = { default = "Deluge";
name = "Deluge"; };
icon = "deluge.svg"; homepage.description = lib.mkOption {
description = "Shh"; type = lib.types.str;
href = url; default = "Torrent client";
siteMonitor = url; };
}; homepage.icon = lib.mkOption {
type = lib.types.str;
default = "deluge.svg";
};
homepage.category = lib.mkOption {
type = lib.types.str;
default = "Downloads";
}; };
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
services.caddy.virtualHosts."${url}" = { services.caddy.virtualHosts."${url}" = {
useACMEHost = config.server.domain; useACMEHost = config.server.domain;