nixos-config/system/hardened.nix

19 lines
578 B
Nix
Raw Normal View History

{ config, modulesPath, pkgs, lib, ... }:
2020-08-14 23:19:21 +02:00
{
imports = [ "${modulesPath}/profiles/hardened.nix" ];
2020-08-14 23:19:21 +02:00
2023-05-31 17:02:01 +02:00
# @TODO hardened kernel causes Bluetooth issues
boot.kernelPackages = lib.mkOverride 900 pkgs.linuxPackages;
2023-05-31 17:02:01 +02:00
2023-04-17 12:42:15 +02:00
# Xbox Controller not working via Bluetooth if enabled
security.lockKernelModules = lib.mkOverride 900 false;
2023-04-17 12:42:15 +02:00
boot.loader.systemd-boot.editor = lib.mkDefault false;
2020-08-14 23:19:21 +02:00
# scudo causes Firefox & Tor Browser segfaults
environment.memoryAllocator.provider = lib.mkOverride 900 "libc";
2023-04-17 12:42:15 +02:00
security.allowSimultaneousMultithreading = lib.mkOverride 900 true;
2020-08-14 23:19:21 +02:00
}