nixos-config/system/hardened.nix

19 lines
568 B
Nix
Raw Normal View History

{ config, modulesPath, pkgs, lib, ... }:
2020-08-14 23:19:21 +02:00
2020-09-23 13:19:19 +02:00
with lib; {
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 = mkOverride 900 pkgs.linuxPackages;
2023-04-17 12:42:15 +02:00
# Xbox Controller not working via Bluetooth if enabled
2023-05-31 17:02:01 +02:00
security.lockKernelModules = mkOverride 900 false;
2023-04-17 12:42:15 +02:00
boot.loader.systemd-boot.editor = mkDefault false;
2020-08-14 23:19:21 +02:00
# scudo causes Firefox & Tor Browser segfaults
2023-05-31 17:02:01 +02:00
environment.memoryAllocator.provider = mkOverride 900 "libc";
2023-04-17 12:42:15 +02:00
2023-05-31 17:02:01 +02:00
security.allowSimultaneousMultithreading = mkOverride 900 true;
2020-08-14 23:19:21 +02:00
}