sysctl nightmare
This commit is contained in:
parent
a5263d8c47
commit
dd2b551bde
4 changed files with 88 additions and 36 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue