summary refs log tree commit diff
diff options
context:
space:
mode:
authorsternenseemann <sternenseemann@systemli.org>2022-02-21 14:47:13 +0100
committersternenseemann <sternenseemann@systemli.org>2022-02-21 14:48:26 +0100
commit10e0861ff2a17f7ec627083e4b428bf5c3f9d213 (patch)
tree3a456345f05d9ecc089051036f0c36e0fa6295b0
parentd4cdf4311a267ccbfdea5809cc043a92ef97b1cd (diff)
fix(nixos): bind mount ld-nix.so.preload if it exists
This means that a (dynamically) linked service will respect alternative
allocator backends if they are configured, for example.
-rw-r--r--nixos/flipdot-gschichtler.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/flipdot-gschichtler.nix b/nixos/flipdot-gschichtler.nix
index e33426e..a19283b 100644
--- a/nixos/flipdot-gschichtler.nix
+++ b/nixos/flipdot-gschichtler.nix
@@ -90,7 +90,7 @@ in {
 
         # make sure only /nix/store is accessible
         TemporaryFileSystem = "/:ro";
-        BindReadOnlyPaths = "${builtins.storeDir}";
+        BindReadOnlyPaths = "${builtins.storeDir} -/etc/ld-nix.so.preload";
         # TemporaryFileSystem doesn't work with DynamicUser
         User = userGroupName;
         Group = userGroupName;