nixos-config/modules/nixos/profiles/hardened.nix

14 lines
380 B
Nix
Raw Normal View History

# A extended hardened configuration from nixpkgs for desktop and server
# systems.
{ pkgs, lib, modulesPath, ... }:
{
2025-01-29 04:48:19 +00:00
imports = [ "${modulesPath}/profiles/hardened.nix" ];
# Don't replace it mid-way! DON'T TURN LEFT!!!!
security.protectKernelImage = true;
# Disable system console entirely. We don't need it so get rid of it.
boot.kernel.sysctl."kernel.sysrq" = 0;
}