nixos/rust-motd: fix systemd service checks

By completely locking down RestrictAddressFamilies, the service
was unable to talk to systemd to check .service statuses.
This commit is contained in:
Jakub Okoński 2022-09-18 23:17:50 +02:00 committed by GitHub
parent 165abe7d73
commit 1655d5ab7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,7 +69,7 @@ in {
ProtectKernelTunables = true;
ProtectSystem = "full";
StateDirectory = "rust-motd";
RestrictAddressFamilies = "none";
RestrictAddressFamilies = [ "AF_UNIX" ];
RestrictNamespaces = true;
RestrictRealtime = true;
RestrictSUIDSGID = true;