mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-04-04 10:29:34 +00:00
Lower memory requirement for test-vm
This commit is contained in:
parent
7c123db1a3
commit
3d93439b28
6
flake.lock
generated
6
flake.lock
generated
@ -6,11 +6,11 @@
|
|||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1710025500,
|
"lastModified": 1710099997,
|
||||||
"narHash": "sha256-niJf4WZ4GHQ+RaP+Qj4+6P/2SWN1Z4co36/ETvIg0Qg=",
|
"narHash": "sha256-WmBKTLdth6I/D+0//9enbIXohGsBjepbjIAm9pCYj0U=",
|
||||||
"owner": "eikek",
|
"owner": "eikek",
|
||||||
"repo": "devshell-tools",
|
"repo": "devshell-tools",
|
||||||
"rev": "57d7d292571e291fe8213a1655529f739cfa174d",
|
"rev": "e82faf976d318b3829f6f7f6785db6f3c7b65267",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
10
flake.nix
10
flake.nix
@ -28,7 +28,9 @@
|
|||||||
redocly-cli
|
redocly-cli
|
||||||
tailwindcss
|
tailwindcss
|
||||||
];
|
];
|
||||||
devshellPkgs = ciPkgs ++ (with pkgs; [
|
devshellPkgs =
|
||||||
|
ciPkgs
|
||||||
|
++ (with pkgs; [
|
||||||
jq
|
jq
|
||||||
scala-cli
|
scala-cli
|
||||||
netcat
|
netcat
|
||||||
@ -161,6 +163,9 @@
|
|||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
{
|
{
|
||||||
|
networking.hostName = "dev-vm";
|
||||||
|
virtualisation.memorySize = 2048;
|
||||||
|
|
||||||
services.dev-postgres = {
|
services.dev-postgres = {
|
||||||
enable = true;
|
enable = true;
|
||||||
databases = ["docspell"];
|
databases = ["docspell"];
|
||||||
@ -170,8 +175,8 @@
|
|||||||
services.dev-solr = {
|
services.dev-solr = {
|
||||||
enable = true;
|
enable = true;
|
||||||
cores = ["docspell"];
|
cores = ["docspell"];
|
||||||
|
heap = 512;
|
||||||
};
|
};
|
||||||
|
|
||||||
port-forward.ssh = 10022;
|
port-forward.ssh = 10022;
|
||||||
port-forward.dev-postgres = 6534;
|
port-forward.dev-postgres = 6534;
|
||||||
port-forward.dev-smtp = 10025;
|
port-forward.dev-smtp = 10025;
|
||||||
@ -180,7 +185,6 @@
|
|||||||
port-forward.dev-minio-api = 9000;
|
port-forward.dev-minio-api = 9000;
|
||||||
port-forward.dev-minio-console = 9001;
|
port-forward.dev-minio-console = 9001;
|
||||||
port-forward.dev-solr = 8983;
|
port-forward.dev-solr = 8983;
|
||||||
networking.hostName = "dev-vm";
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
@ -22,6 +22,7 @@ in {
|
|||||||
services.dev-solr = {
|
services.dev-solr = {
|
||||||
enable = true;
|
enable = true;
|
||||||
cores = ["docspell"];
|
cores = ["docspell"];
|
||||||
|
heap = 512;
|
||||||
};
|
};
|
||||||
|
|
||||||
port-forward.dev-webmail = 8080;
|
port-forward.dev-webmail = 8080;
|
||||||
@ -39,7 +40,8 @@ in {
|
|||||||
firewall.allowedTCPPorts = [7880];
|
firewall.allowedTCPPorts = [7880];
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualisation.memorySize = 6144;
|
virtualisation.memorySize = 2048;
|
||||||
|
virtualisation.cores = 2;
|
||||||
|
|
||||||
virtualisation.forwardPorts = [
|
virtualisation.forwardPorts = [
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user