generated from andy/linux-nixos-hyprland-config-dotfiles
Initial commit
This commit is contained in:
42
nixos/linux-kernel.nix
Normal file
42
nixos/linux-kernel.nix
Normal file
@@ -0,0 +1,42 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
# Linux Kernel
|
||||
security.forcePageTableIsolation = true;
|
||||
# security.lockKernelModules = true;
|
||||
# security.protectKernelImage = true;
|
||||
security.unprivilegedUsernsClone = true;
|
||||
security.virtualisation.flushL1DataCache = "cond";
|
||||
boot.kernelPackages = pkgs.linuxKernel.packages.linux_zen;
|
||||
boot.kernelParams = [
|
||||
"quiet"
|
||||
"splash"
|
||||
"loglevel=3"
|
||||
"rd.udev.log_priority=3"
|
||||
"systemd.show_status=auto"
|
||||
"fbcon=nodefer"
|
||||
"vt.global_cursor_default=0"
|
||||
"kernel.modules_disabled=1"
|
||||
"lsm=landlock,lockdown,yama,integrity,apparmor,bpf"
|
||||
"usbcore.autosuspend=-1"
|
||||
"video4linux"
|
||||
"acpi_rev_override=5"
|
||||
];
|
||||
# boot.kernelPatches = [ {
|
||||
# name = "selinux-config";
|
||||
# patch = null;
|
||||
# extraConfig = ''
|
||||
# SECURITY_SELINUX y
|
||||
# SECURITY_SELINUX_BOOTPARAM n
|
||||
# SECURITY_SELINUX_DEVELOP y
|
||||
# SECURITY_SELINUX_AVC_STATS y
|
||||
# DEFAULT_SECURITY_SELINUX n
|
||||
# '';
|
||||
# } ];
|
||||
|
||||
# systemd.package = pkgs.systemd.override { withSelinux = true; };
|
||||
|
||||
# environment.systemPackages = with pkgs; [
|
||||
# policycoreutils
|
||||
# ];
|
||||
}
|
Reference in New Issue
Block a user