summaryrefslogtreecommitdiff
path: root/flora/services
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--flora/services/akkoma.nix28
-rw-r--r--flora/services/blog.nix8
-rw-r--r--flora/services/mail.nix6
3 files changed, 25 insertions, 17 deletions
diff --git a/flora/services/akkoma.nix b/flora/services/akkoma.nix
index 6864a29..d7e7b49 100644
--- a/flora/services/akkoma.nix
+++ b/flora/services/akkoma.nix
@@ -114,7 +114,7 @@ in
database = "pleroma";
socket_dir = "/run/postgresql";
pool_size = 10;
- # prepare = ":named";
+ prepare = mkAtom ":named";
show_sensitive_data_on_connection_error = true;
parameters = { plan_cache_mode = "force_custom_plan"; };
};
@@ -166,16 +166,16 @@ in
} ];
settings = {
- max_connections = 20;
- shared_buffers = "256MB";
- effective_cache_size = "768MB";
- maintenance_work_mem = "64MB";
+ max_connections = 300;
+ shared_buffers = "768MB";
+ effective_cache_size = "2304MB";
+ maintenance_work_mem = "192MB";
checkpoint_completion_target = 0.9;
- wal_buffers = "7864kB";
+ wal_buffers = "16MB";
default_statistics_target = 100;
random_page_cost = 1.1;
effective_io_concurrency = 200;
- work_mem = "6553kB";
+ work_mem = "4MB";
huge_pages = "off";
min_wal_size = "2GB";
max_wal_size = "8GB";
@@ -203,8 +203,18 @@ in
networking.firewall.allowedTCPPorts = [ 4000 ];
- environment.etc."resolv.conf".text =
- "nameserver 1.1.1.1";
+ # environment.etc."resolv.conf".text =
+ # "nameserver 1.1.1.1";
+ #
+ # TODO: Possibly?
+ # services.coredns = {
+ # enable = true;
+ # config = ''
+ # .:53 {
+ # forward . 1.1.1.1
+ # }
+ # '';
+ # };
};
};
diff --git a/flora/services/blog.nix b/flora/services/blog.nix
index e77cc7c..5b4912f 100644
--- a/flora/services/blog.nix
+++ b/flora/services/blog.nix
@@ -6,7 +6,7 @@ let
src = pkgs.fetchgit {
url = "https://stuebinm.eu/git/forks/lux";
rev = "refs/heads/master";
- sha256 = "sha256-L2y5SEGOaoWl+jQGP3TmpQQLojjkRAjiRjbwhGKOg14=";
+ hash = "sha256-ooRgRhs50D6TEFVpL9QfsCUKX/R7dUoETIorJoS9FNY=";
};
buildInputs = [ pkgs.mdbook ];
buildPhase = ''
@@ -27,8 +27,8 @@ let
'';
installPhase = ''
mkdir -p $out
- mv gtfs-book-html $out/gtfs
- mv gtfs-realtime-book-html $out/gtfs-realtime
+ mv /build/gtfs-book-html $out/gtfs
+ mv /build/gtfs-realtime-book-html $out/gtfs-realtime
cp -r ${lux.outPath} $out/lux
'';
};
@@ -48,5 +48,7 @@ in
'';
});
locations."/bookshelf/".alias = "${gtfsBooks.outPath}/";
+
+ locations."/steno/".alias = "${pkgs.copyPathToStore ./dist}/";
};
}
diff --git a/flora/services/mail.nix b/flora/services/mail.nix
index 0ee8418..4705e25 100644
--- a/flora/services/mail.nix
+++ b/flora/services/mail.nix
@@ -12,15 +12,11 @@
# A list of all login accounts. To create the password hashes, use
# nix run nixpkgs.apacheHttpd -c htpasswd -nbB "" "super secret password" | cut -d: -f2
- loginAccounts = {
+ accounts = {
"hello@stuebinm.eu" = {
hashedPasswordFile = "/run/secrets/mail/hashedPassword";
aliases = ["postmaster@stuebinm.eu" "abuse@stuebinm.eu"];
};
};
-
- # Use Let's Encrypt certificates. Note that this needs to set up a stripped
- # down nginx and opens port 80.
- certificateScheme = "acme-nginx";
};
}