mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
20 lines
585 B
Nix
20 lines
585 B
Nix
# A extended hardened configuration from nixpkgs for desktop and server
|
|
# systems.
|
|
{ pkgs, lib, modulesPath, ... }:
|
|
|
|
{
|
|
imports = [
|
|
"${modulesPath}/profiles/hardened.nix"
|
|
];
|
|
|
|
# Don't replace it mid-way! DON'T TURN LEFT!!!!
|
|
security.protectKernelImage = true;
|
|
|
|
# Hardened config equals hardened kernel equals hardened co--approval from the
|
|
# security-minded people.
|
|
boot.kernelPackages = lib.mkOverride 500 pkgs.linuxKernel.packages.linux_6_6_hardened;
|
|
|
|
# Disable system console entirely. We don't need it so get rid of it.
|
|
boot.kernel.sysctl."kernel.sysrq" = 0;
|
|
}
|