mirror of
https://github.com/diced/zipline.git
synced 2025-12-05 20:40:12 -08:00
fix: add minio to flake
This commit is contained in:
46
flake.nix
46
flake.nix
@@ -65,10 +65,14 @@
|
|||||||
|
|
||||||
scripts = {
|
scripts = {
|
||||||
pgup.exec = ''
|
pgup.exec = ''
|
||||||
process-compose -D
|
process-compose up postgres -D
|
||||||
'';
|
'';
|
||||||
|
|
||||||
pgdown.exec = ''
|
minioup.exec = ''
|
||||||
|
process-compose up minio -D
|
||||||
|
'';
|
||||||
|
|
||||||
|
downall.exec = ''
|
||||||
process-compose down
|
process-compose down
|
||||||
'';
|
'';
|
||||||
|
|
||||||
@@ -90,23 +94,33 @@
|
|||||||
corepack.enable = true;
|
corepack.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.postgres = {
|
services = {
|
||||||
enable = true;
|
postgres = {
|
||||||
package = pkgs.postgresql_17;
|
enable = true;
|
||||||
|
package = pkgs.postgresql_17;
|
||||||
|
|
||||||
initialScript = ''
|
initialScript = ''
|
||||||
CREATE ROLE "${psqlConfig.username}" WITH LOGIN PASSWORD '${psqlConfig.password}' SUPERUSER;
|
CREATE ROLE "${psqlConfig.username}" WITH LOGIN PASSWORD '${psqlConfig.password}' SUPERUSER;
|
||||||
'';
|
'';
|
||||||
|
|
||||||
initialDatabases = [
|
initialDatabases = [
|
||||||
{
|
{
|
||||||
name = psqlConfig.database;
|
name = psqlConfig.database;
|
||||||
user = psqlConfig.username;
|
user = psqlConfig.username;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
listen_addresses = "0.0.0.0";
|
listen_addresses = "0.0.0.0";
|
||||||
port = 5432;
|
port = 5432;
|
||||||
|
};
|
||||||
|
|
||||||
|
minio = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
process.managers.process-compose = {
|
||||||
|
tui.enable = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user