Compare commits

...

3 commits

Author SHA1 Message Date
a38d6f9846
sakura: readd grafana / formatting
All checks were successful
ci/woodpecker/push/checks Pipeline was successful
2023-06-19 08:19:17 -04:00
880f2952b3
grafana: use postgres backend 2023-06-19 08:19:00 -04:00
54dee8bf04
postgres: init grafana 2023-06-19 08:18:30 -04:00
5 changed files with 17 additions and 4 deletions

View file

@ -36,11 +36,16 @@
name = "miniflux";
ensurePermissions."DATABASE miniflux" = "ALL PRIVILEGES";
}
{
name = "grafana";
ensurePermissions."DATABASE grafana" = "ALL PRIVILEGES";
}
];
ensureDatabases = [
"forgejo"
"hedgedoc"
"miniflux"
"grafana"
];
};
}

View file

@ -1,8 +1,8 @@
{config, ...}: {
sops.secrets.attic-jwt-secret = {};
sops.secrets.attic-secret = {};
services.atticd = {
enable = true;
credentialsFile = config.sops.secrets.attic-jwt-secret.path;
credentialsFile = config.sops.secrets.attic-secret.path;
settings = {
listen = "[::]:8100";
allowed-hosts = ["cache.notohh.dev"];

View file

@ -7,8 +7,9 @@
./jellyfin.nix
./rustypaste.nix
./woodpecker.nix
./atticd.nix
./hedgedoc.nix
./dashdot.nix
./grafana.nix
./prometheus.nix
];
}

View file

@ -4,7 +4,6 @@
lib,
...
}: {
sops.secrets.forgejo-db = {};
services.gitea = {
enable = true;
package = pkgs.forgejo;

View file

@ -17,6 +17,14 @@ _: {
auto_assign_org = true;
auto_assign_org_role = "Viewer";
};
database = {
type = "postgres";
host = "192.168.1.211:5432";
name = "grafana";
user = "grafana";
password = "grafana";
ssl_mode = "disable";
};
};
provision = {
datasources.settings = {