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"; name = "miniflux";
ensurePermissions."DATABASE miniflux" = "ALL PRIVILEGES"; ensurePermissions."DATABASE miniflux" = "ALL PRIVILEGES";
} }
{
name = "grafana";
ensurePermissions."DATABASE grafana" = "ALL PRIVILEGES";
}
]; ];
ensureDatabases = [ ensureDatabases = [
"forgejo" "forgejo"
"hedgedoc" "hedgedoc"
"miniflux" "miniflux"
"grafana"
]; ];
}; };
} }

View file

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

View file

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

View file

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

View file

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