nix-bitcoin/modules/presets/hardened.nix

16 lines
433 B
Nix
Raw Normal View History

{ modulesPath, ... }: {
imports = [
# Source:
# https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/profiles/hardened.nix
(modulesPath + "/profiles/hardened.nix")
];
## Reset some options set by the hardened profile
# Needed for sandboxed builds and services
security.allowUserNamespaces = true;
2021-08-05 01:48:56 +03:00
# The "scudo" allocator is broken on NixOS >= 20.09
environment.memoryAllocator.provider = "libc";
}