0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 22:20:30 +03:00
nixpkgs/nixos/modules
Yuriy Taraday 28ba9e2c27 nixos/acme: Set /var/lib/acme permissions to 755
It was being created with the default home permissions of 700, and then
set to 755 at runtime by something either some script or systemd as
part of service startup.

It worked fine without sysusers, but when it's enabed with:

    systemd.sysusers.enable = true;

systemd-tmpfiles is resetting permissions on each activation, which
breaks, for example, nginx reload, because it cannot load certificates
anymore, because it doesn't have any access to `/var/lib/acme`.

Fix this by setting `homeMode = "755";` explicitely so that it's set to
the final value from the beginning.

(cherry picked from commit 64a6e8292a)
2024-11-27 13:52:09 +00:00
..
config 24.11 beta release 2024-11-14 08:57:15 -08:00
hardware nixos/coral: init 2024-11-23 00:05:46 +00:00
i18n/input-method doc: document ibus-engine for Chinese input in input-methods section (#319953) 2024-11-01 22:28:44 +08:00
image nixos/image/repart: unsafeDiscardReferences.out = true 2024-10-10 11:48:36 +02:00
installer nixos/tools: add enable options to manual 2024-11-18 16:04:17 +00:00
misc 24.11 beta release 2024-11-14 08:57:15 -08:00
profiles nixos/{demo,installer/virtualbox-demo}: drop 2024-11-07 23:41:51 +00:00
programs nixos/screen: remove assertion 2024-11-24 20:58:27 +01:00
security nixos/acme: Set /var/lib/acme permissions to 755 2024-11-27 13:52:09 +00:00
services [backport 24.11] treewide: remove deprecations up until 24.11 (#358798) 2024-11-25 17:31:46 +00:00
system nixos/activation: Add pre-switch checks 2024-11-23 01:33:43 +00:00
tasks zfs: remove recommendations to use unstable 2024-11-01 18:50:24 -04:00
testing nixos/test-instrumentation: forward journald to correct tty also in systemd initrd 2024-10-18 10:08:29 +02:00
virtualisation [Backport release-24.11] nixos/incus: add incus-user service and socket (#356398) 2024-11-24 11:28:39 +01:00
module-list.nix nixos/suricata: add module to modules-list 2024-11-23 21:32:44 +01:00
rename.nix [Backport release-24.11] globalprotect-openconnect: Reinstate v1 (#356229) 2024-11-19 21:57:53 +01:00