freun.dev: add weechat
This commit is contained in:
@@ -9,6 +9,10 @@ let
|
||||
type = lib.types.nullOr lib.types.int;
|
||||
default = null;
|
||||
};
|
||||
root = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.path;
|
||||
default = null;
|
||||
};
|
||||
extraConfig = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "";
|
||||
@@ -83,9 +87,13 @@ in
|
||||
];
|
||||
locations = lib.mapAttrs (
|
||||
_:
|
||||
{ proxyPort, extraConfig }:
|
||||
{
|
||||
proxyPort,
|
||||
extraConfig,
|
||||
root,
|
||||
}:
|
||||
lib.mergeAttrsList [
|
||||
{ inherit extraConfig; }
|
||||
{ inherit extraConfig root; }
|
||||
(
|
||||
if (lib.isInt proxyPort) then
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user