sysctl nightmare

This commit is contained in:
xmm16 2024-12-12 14:30:03 -03:00
commit dd2b551bde
No known key found for this signature in database
4 changed files with 88 additions and 36 deletions

View file

@ -2,6 +2,11 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{pkgs, ...}: {
imports = [
./config/sysctl.d/performance.nix
./config/sysctl.d/hardening.nix
];
boot.initrd.systemd = {
enable = true;
tpm2 = {enable = true;};
@ -15,8 +20,6 @@
"hugepagesz=1G"
];
boot.kernel.sysctl = [(builtins.readFile ./config/sysctl.d/performance.conf)];
services.scx = {
enable = true;
scheduler = "scx_lavd";