nix-config/modules/features/security/sysctl/security-sysctl-debug.nix
2026-04-15 18:26:05 -04:00

17 lines
298 B
Nix

# Restricts dmesg
{ ... }:
{
config.dendritic.features.security-sysctl-debug = {
nixosModules = [
(
{ ... }:
{
boot.kernel.sysctl = {
"kernel.kptr_restrict" = 2;
"kernel.dmesg_restrict" = 1;
};
}
)
];
};
}