Initial commit

This commit is contained in:
m3tam3re
2025-04-07 19:47:07 +02:00
commit b552960c30
6 changed files with 298 additions and 0 deletions

47
configuration.nix Normal file
View File

@@ -0,0 +1,47 @@
{
imports = [
./formatters
];
services.simple-app = {
enable = true;
settings = {
server = {
port = 8080;
host = "0.0.0.0";
};
logging = {
level = "info";
file = "/var/log/simple-app.log";
};
};
};
services.validated-app = {
enable = true;
settings = {
server = {
port = 8080;
host = "0.0.0.0";
};
logging = {
level = "info";
file = "/var/log/simple-app.log";
};
};
};
services.multi-config-app = {
enable = true;
serverSettings = {
port = 8000;
host = "0.0.0.0";
};
databaseSettings = {
url = "postgres://localhost/myapp";
maxConnections = 50;
};
loggingSettings = {
level = "warn";
format = "text";
};
};
}