formatting + organizing
This commit is contained in:
@@ -15,7 +15,10 @@ in
|
||||
virtualisation.oci-containers.containers."${cfg.name}" = {
|
||||
autoStart = cfg.autoStart;
|
||||
image = cfg.image;
|
||||
extraOptions = [ "--cap-add=MKNOD" "--privileged" ];
|
||||
extraOptions = [
|
||||
"--cap-add=MKNOD"
|
||||
"--privileged"
|
||||
];
|
||||
ports = [ "${cfg.port}:9980" ];
|
||||
volumes = [
|
||||
# ...
|
||||
@@ -29,7 +32,7 @@ in
|
||||
domain = "office.mjallen.dev";
|
||||
aliasgroup1 = "https://cloud\.mjallen\.dev:443";
|
||||
aliasgroup2 = "https://cloud\.mjallen\.dev:443";
|
||||
# DONT_GEN_SSL_CERT = cfg.dontGenSslCert;
|
||||
# DONT_GEN_SSL_CERT = cfg.dontGenSslCert;
|
||||
server_name = cfg.serverName;
|
||||
dictionaries = cfg.dictionaries;
|
||||
extra_params = cfg.extraParams;
|
||||
|
||||
@@ -16,9 +16,7 @@ in
|
||||
autoStart = cfg.autoStart;
|
||||
image = cfg.image;
|
||||
ports = [ "${cfg.port}:9000" ];
|
||||
volumes = [
|
||||
"${cfg.dataPath}:/app/data"
|
||||
];
|
||||
volumes = [ "${cfg.dataPath}:/app/data" ];
|
||||
environment = {
|
||||
PUID = cfg.puid;
|
||||
PGID = cfg.pgid;
|
||||
|
||||
@@ -17,9 +17,7 @@ in
|
||||
autoStart = true;
|
||||
image = cfg.image;
|
||||
extraOptions = [ "--device=nvidia.com/gpu=0" ];
|
||||
volumes = [
|
||||
"${cfg.configPath}:/root/.ollama"
|
||||
];
|
||||
volumes = [ "${cfg.configPath}:/root/.ollama" ];
|
||||
ports = [ "${cfg.port}:11434" ];
|
||||
environment = {
|
||||
NVIDIA_VISIBLE_DEVICES = "all";
|
||||
|
||||
@@ -20,9 +20,7 @@ in
|
||||
"--requirepass"
|
||||
"BogieDudie1"
|
||||
];
|
||||
ports = [
|
||||
"6379:6379"
|
||||
];
|
||||
ports = [ "6379:6379" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -25,7 +25,10 @@ in
|
||||
"${cfg.moviesPath}:/data/movies"
|
||||
"${cfg.tvPath}:/data/tv"
|
||||
];
|
||||
ports = [ "${cfg.serverPort}:8266" "${cfg.webUIPort}:8265" ];
|
||||
ports = [
|
||||
"${cfg.serverPort}:8266"
|
||||
"${cfg.webUIPort}:8265"
|
||||
];
|
||||
environment = {
|
||||
serverPort = "8266";
|
||||
webUIPort = "8265";
|
||||
|
||||
Reference in New Issue
Block a user