feat: massive refactoring...

This commit is contained in:
Xavier Morel
2025-11-09 00:45:00 +01:00
parent f9446df46d
commit 3245b6b89f
77 changed files with 3233 additions and 582 deletions

34
containers/monitoring.nix Normal file
View File

@@ -0,0 +1,34 @@
{ ... }:
let
db_pass = import ../config/_passwords.nix;
in
{
my-lxc.monitoring = {
container = {
cores = 2;
memory = 1024;
disk = "10G";
swap = 512;
};
system = {
port = 3000; # grafana
additionalPorts = [
3100 # loki
];
importConfig = [
../config/monitoring-grafana.nix
../config/monitoring-loki.nix
];
};
db = {
enable = true;
password = db_pass.monitoring;
};
logging = {
enable = true;
metricsEnable = true;
};
private = true;
auth = true;
};
}