From 86c5ddb05f2693467fda83e018c11b182b100afc Mon Sep 17 00:00:00 2001 From: Gerg-L Date: Tue, 28 Jan 2025 23:10:29 -0500 Subject: [PATCH] fix acme-fixperms failing --- nixosConfigurations/gerg-desktop/services/nginx.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/nixosConfigurations/gerg-desktop/services/nginx.nix b/nixosConfigurations/gerg-desktop/services/nginx.nix index 1a00aee..7df0f54 100644 --- a/nixosConfigurations/gerg-desktop/services/nginx.nix +++ b/nixosConfigurations/gerg-desktop/services/nginx.nix @@ -28,7 +28,15 @@ }; }; - systemd.tmpfiles.rules = [ "L+ /var/lib/acme - - - - /persist/services/acme" ]; + fileSystems."/var/lib/acme" = { + device = "/persist/services/acme"; + fsType = "none"; + options = [ "bind" ]; + depends = [ + "/persist" + "/var" + ]; + }; users.users.${config.services.nginx.user}.extraGroups = [ "acme" ];