2020-12-16 09:57:57 -08:00
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
# Source: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/profiles/hardened.nix
|
|
|
|
<nixpkgs/nixos/modules/profiles/hardened.nix>
|
|
|
|
];
|
|
|
|
|
|
|
|
## Reset some options set by the hardened profile
|
|
|
|
|
|
|
|
# Needed for sandboxed builds and services
|
|
|
|
security.allowUserNamespaces = true;
|
|
|
|
|
2021-08-04 15:48:56 -07:00
|
|
|
# The "scudo" allocator is broken on NixOS >= 20.09
|
2020-12-16 09:57:57 -08:00
|
|
|
environment.memoryAllocator.provider = "libc";
|
|
|
|
}
|