mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 14:57:28 +03:00
Merge pull request #73763 from kmcopper/hardening-profile
Improvements to the NixOS Hardened Profile
This commit is contained in:
commit
18b89e7abd
@ -14,12 +14,17 @@ with lib;
|
|||||||
|
|
||||||
nix.allowedUsers = mkDefault [ "@users" ];
|
nix.allowedUsers = mkDefault [ "@users" ];
|
||||||
|
|
||||||
|
environment.memoryAllocator.provider = mkDefault "scudo";
|
||||||
|
environment.variables.SCUDO_OPTIONS = mkDefault "ZeroContents=1";
|
||||||
|
|
||||||
security.hideProcessInformation = mkDefault true;
|
security.hideProcessInformation = mkDefault true;
|
||||||
|
|
||||||
security.lockKernelModules = mkDefault true;
|
security.lockKernelModules = mkDefault true;
|
||||||
|
|
||||||
security.allowUserNamespaces = mkDefault false;
|
security.allowUserNamespaces = mkDefault false;
|
||||||
|
|
||||||
|
nix.useSandbox = mkDefault false;
|
||||||
|
|
||||||
security.protectKernelImage = mkDefault true;
|
security.protectKernelImage = mkDefault true;
|
||||||
|
|
||||||
security.allowSimultaneousMultithreading = mkDefault false;
|
security.allowSimultaneousMultithreading = mkDefault false;
|
||||||
|
Loading…
Reference in New Issue
Block a user