diff options
author | sternenseemann <sternenseemann@systemli.org> | 2022-02-21 14:47:13 +0100 |
---|---|---|
committer | sternenseemann <sternenseemann@systemli.org> | 2022-02-21 14:48:26 +0100 |
commit | 10e0861ff2a17f7ec627083e4b428bf5c3f9d213 (patch) | |
tree | 3a456345f05d9ecc089051036f0c36e0fa6295b0 | |
parent | d4cdf4311a267ccbfdea5809cc043a92ef97b1cd (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.nix | 2 |
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; |