Allow the nginx user to access SSL certificates

Fixes this error:

> Failed assertions:
> - Certificate oliverdavies.uk (group=acme) must be readable by
service(s) nginx.service (user=nginx groups=nginx),
nginx-config-reload.service (user=root groups=)
This commit is contained in:
Oliver Davies 2025-04-27 20:58:35 +01:00
parent 3d806c436f
commit be26969d9b

View file

@ -47,5 +47,7 @@ in
}; };
}; };
users.users.${config.services.nginx.user}.extraGroups = [ "acme" ];
imports = [ ./www.oliverdavies.uk.nix ]; imports = [ ./www.oliverdavies.uk.nix ];
} }