git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #73763 from kmcopper/hardening-profile

Improvements to the NixOS Hardened Profile

commit18b89e7abddc90e8dcdb616c5a6321dd46de7631 authorJoachim F <joachifm@users.noreply.github.com> dateFri 3 Apr 2020, 18:48 (7 years ago) parent9e55da1759968a
1 file changed+5
nixos/modules/profiles/hardened.nix+5
nixos/modules/profiles/hardened.nix+5
@@ -14,12 +14,17 @@ with lib;
1414
1515 nix.allowedUsers = mkDefault [ "@users" ];
1616
17+ environment.memoryAllocator.provider = mkDefault "scudo";
18+ environment.variables.SCUDO_OPTIONS = mkDefault "ZeroContents=1";
19+
1720 security.hideProcessInformation = mkDefault true;
1821
1922 security.lockKernelModules = mkDefault true;
2023
2124 security.allowUserNamespaces = mkDefault false;
2225
26+ nix.useSandbox = mkDefault false;
27+
2328 security.protectKernelImage = mkDefault true;
2429
2530 security.allowSimultaneousMultithreading = mkDefault false;