mirror of
https://github.com/denismhz/flake.git
synced 2025-11-09 16:16:23 +01:00
Update
This commit is contained in:
parent
bc50096893
commit
a062543a61
|
|
@ -51,7 +51,7 @@ in
|
||||||
]);
|
]);
|
||||||
in attrsOf (either atom (listOf atom));
|
in attrsOf (either atom (listOf atom));
|
||||||
options = {
|
options = {
|
||||||
host = mkOption {
|
listen = mkOption {
|
||||||
description = "Launch gradio with 0.0.0.0 as server name, allowing to respond to network requests.";
|
description = "Launch gradio with 0.0.0.0 as server name, allowing to respond to network requests.";
|
||||||
default = false;
|
default = false;
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
|
|
@ -63,7 +63,7 @@ in
|
||||||
type = types.port;
|
type = types.port;
|
||||||
};
|
};
|
||||||
|
|
||||||
root = mkOption {
|
data-dir = mkOption {
|
||||||
description = "Where to store A1111's state.";
|
description = "Where to store A1111's state.";
|
||||||
default = "/var/lib/a1111";
|
default = "/var/lib/a1111";
|
||||||
type = types.path;
|
type = types.path;
|
||||||
|
|
@ -83,7 +83,7 @@ in
|
||||||
|
|
||||||
cliArgs = (flatten (mapAttrsToList (n: v:
|
cliArgs = (flatten (mapAttrsToList (n: v:
|
||||||
if v == null then []
|
if v == null then []
|
||||||
else if isBool v then [ "--${optionalString (!v) "no-"}${n}" ]
|
else if isBool v then [ "--${optionalString v }--${n}" ]
|
||||||
else if isInt v then [ "--${n}" "${toString v}" ]
|
else if isInt v then [ "--${n}" "${toString v}" ]
|
||||||
else if isFloat v then [ "--${n}" "${floatToString v}" ]
|
else if isFloat v then [ "--${n}" "${floatToString v}" ]
|
||||||
else if isString v then ["--${n}" v ]
|
else if isString v then ["--${n}" v ]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue