From 276f9ab22bb98f2dfb4297ba2fe34256d82d82f9 Mon Sep 17 00:00:00 2001 From: Astrid Yu Date: Tue, 18 Jul 2023 00:35:45 -0700 Subject: [PATCH] Get rid of /run/akkoma/cookie bug --- nix/nixos-modules/roles/akkoma/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nix/nixos-modules/roles/akkoma/default.nix b/nix/nixos-modules/roles/akkoma/default.nix index 33e7ee0f..e1e08b43 100644 --- a/nix/nixos-modules/roles/akkoma/default.nix +++ b/nix/nixos-modules/roles/akkoma/default.nix @@ -178,7 +178,11 @@ in { # It seems to be running out of FDs. # By default it's 1024, which is a bit too small. - systemd.services.akkoma.serviceConfig.LimitNOFILE = 262144; + systemd.services.akkoma.serviceConfig = { + LimitNOFILE = 262144; + # /run/akkoma/cookie issue? + BindReadOnlyPaths = [ "/run/akkoma:/run/akkoma" ]; + }; systemd.services.akkoma-config = { requires = [ "akkoma-secrets.service" "akkoma_b2-secrets.service" ];