summary refs log tree commit diff
path: root/nixos/doc/manual/configuration/profiles/hardened.section.md
blob: 9fb5e18c384a2698d074abdb7eb81f567e725363 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Hardened {#sec-profile-hardened}

A profile with most (vanilla) hardening options enabled by default,
potentially at the cost of stability, features and performance.

This includes a hardened kernel, and limiting the system information
available to processes through the `/sys` and
`/proc` filesystems. It also disables the User Namespaces
feature of the kernel, which stops Nix from being able to build anything
(this particular setting can be overriden via
[](#opt-security.allowUserNamespaces)). See the
[profile source](https://github.com/nixos/nixpkgs/tree/master/nixos/modules/profiles/hardened.nix)
for further detail on which settings are altered.

::: {.warning}
This profile enables options that are known to affect system
stability. If you experience any stability issues when using the
profile, try disabling it. If you report an issue and use this
profile, always mention that you do.
:::