mirror of
https://github.com/bartvdbraak/dotfiles.git
synced 2025-06-29 12:49:10 +00:00
Restructure Configuration
This commit is contained in:
parent
af4429982d
commit
7fce1cec3f
73 changed files with 841 additions and 3504 deletions
35
nixos/modules/linux-kernel.nix
Normal file
35
nixos/modules/linux-kernel.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
# Linux Kernel
|
||||
boot.kernelPackages = pkgs.linuxKernel.packages.linux_zen;
|
||||
boot.kernelParams = [
|
||||
"splash"
|
||||
"quiet"
|
||||
"fbcon=nodefer"
|
||||
"vt.global_cursor_default=0"
|
||||
"kernel.modules_disabled=1"
|
||||
"lsm=landlock,lockdown,yama,integrity,apparmor,bpf,tomoyo,selinux"
|
||||
"usbcore.autosuspend=-1"
|
||||
"video4linux"
|
||||
"acpi_rev_override=5"
|
||||
# "security=selinux"
|
||||
];
|
||||
# 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
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue