small changes to deluge
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user