From a25ef0c8ab4f0281b637b83003dd7d0d0835e2ab Mon Sep 17 00:00:00 2001 From: Victor Date: Sun, 24 Dec 2023 11:16:12 +0100 Subject: [PATCH] cleanup hades hosts --- nixos/hosts/hades/default.nix | 40 ++++---------------- nixos/hosts/hades/mastodon/configuration.nix | 6 +++ 2 files changed, 13 insertions(+), 33 deletions(-) diff --git a/nixos/hosts/hades/default.nix b/nixos/hosts/hades/default.nix index f3bf6ce0..0c8df863 100644 --- a/nixos/hosts/hades/default.nix +++ b/nixos/hosts/hades/default.nix @@ -18,11 +18,7 @@ ip = "192.168.0.101"; mac = "5a:00:b7:6c:d1:e2"; }; - "plex" = { - ip = "192.168.0.102"; - mac = "00:0c:29:a1:4e:28"; - nix = false; - }; + # ip = "192.168.0.102"; "vault-0" = { ip = "192.168.0.103"; mac = "7A:14:15:ED:D1:E6"; @@ -60,16 +56,8 @@ profile = "dns"; tags = [ "networking" ]; }; - "MariaDB" = { - ip = "192.168.0.109"; - mac = "00:0c:29:23:4f:12"; - nix = false; - }; - "bitwarden_rs" = { - ip = "192.168.0.110"; - mac = "00:0c:29:f5:98:00"; - nix = false; - }; + # ip = "192.168.0.109"; + # ip = "192.168.0.110"; "rtorrent" = { ip = "192.168.0.111"; mac = "7a:5f:9b:62:49:91"; @@ -139,15 +127,8 @@ mac = "5E:36:04:2D:38:DF"; type = "vm"; }; - "database" = { - ip = "192.168.0.126"; - mac = "82:e8:71:7f:37:b4"; - }; - "dn42" = { - ip = "192.168.0.127"; - mac = "12:fa:24:02:65:e6"; - nix = false; - }; + # ip = "192.168.0.126"; + # ip = "192.168.0.127"; "attic" = { ip = "192.168.0.128"; mac = "9E:AF:E9:FE:D4:D9"; @@ -165,15 +146,8 @@ }; nix = false; }; - # "docker-registry" = { - # ip = "192.168.0.130"attic, ; - # mac = "5e:0e:a6:cf:64:70"; - # }; - "minecraft" = { - ip = "192.168.0.131"; - mac = "00:0c:29:9b:e1:c4"; - nix = false; - }; + # ip = "192.168.0.130"; + # ip = "192.168.0.131"; "tudelft" = { ip = "192.168.0.132"; mac = "AE:B3:93:4B:04:76"; diff --git a/nixos/hosts/hades/mastodon/configuration.nix b/nixos/hosts/hades/mastodon/configuration.nix index 9251cad5..c797a129 100644 --- a/nixos/hosts/hades/mastodon/configuration.nix +++ b/nixos/hosts/hades/mastodon/configuration.nix @@ -34,6 +34,12 @@ in services.postgresql = { enable = true; package = pkgs.postgresql_16; + settings = { + shared_preload_libraries = "pg_stat_statements"; + "pg_stat_statements.track" = "all"; + "pg_stat_statements.max" = 10000; + track_activity_query_size = 2048; + }; # The rest of the database setup is handled by mastodon };