mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-01 01:33:20 +00:00
nixos/bitlbee: add hostname, config dir and protocols options
This commit is contained in:
parent
1f23880449
commit
c0de3b306b
@ -17,10 +17,12 @@ let
|
|||||||
[settings]
|
[settings]
|
||||||
RunMode = Daemon
|
RunMode = Daemon
|
||||||
User = bitlbee
|
User = bitlbee
|
||||||
ConfigDir = /var/lib/bitlbee
|
ConfigDir = ${cfg.configDir}
|
||||||
DaemonInterface = ${cfg.interface}
|
DaemonInterface = ${cfg.interface}
|
||||||
DaemonPort = ${toString cfg.portNumber}
|
DaemonPort = ${toString cfg.portNumber}
|
||||||
AuthMode = ${cfg.authMode}
|
AuthMode = ${cfg.authMode}
|
||||||
|
${lib.optionalStringv (cfg.hostName != "") "HostName = ${cfg.hostName}"}
|
||||||
|
Protocols = ${cfg.protocols}
|
||||||
${cfg.extraSettings}
|
${cfg.extraSettings}
|
||||||
|
|
||||||
[defaults]
|
[defaults]
|
||||||
@ -73,6 +75,34 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
hostName = mkOption {
|
||||||
|
default = "";
|
||||||
|
type = types.str;
|
||||||
|
description = ''
|
||||||
|
Normally, BitlBee gets a hostname using getsockname(). If you have a nicer
|
||||||
|
alias for your BitlBee daemon, you can set it here and BitlBee will identify
|
||||||
|
itself with that name instead.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
configDir = mkOption {
|
||||||
|
default = "/var/lib/bitlbee";
|
||||||
|
type = types.path;
|
||||||
|
description = ''
|
||||||
|
Specify an alternative directory to store all the per-user configuration
|
||||||
|
files.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
protocols = mkOption {
|
||||||
|
default = "";
|
||||||
|
type = types.str;
|
||||||
|
description = ''
|
||||||
|
This option allows to remove the support of protocol, even if compiled
|
||||||
|
in. If nothing is given, there are no restrictions.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
extraSettings = mkOption {
|
extraSettings = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
description = ''
|
description = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user