mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Boot+Refactoring] Add a cmdline config option for cleaner boot option config
This commit is contained in:
parent
8457628ee6
commit
7e26d25066
6 changed files with 43 additions and 22 deletions
|
|
@ -53,7 +53,7 @@ in
|
|||
services.dbus.apparmor = "enabled";
|
||||
|
||||
|
||||
boot.kernelParams = concatLists [
|
||||
boot.kernelParams = mkAfter (concatLists [
|
||||
# Slab/slub sanity checks, redzoning, and poisoning
|
||||
(optional cfg.expensive "slub_debug=FZP")
|
||||
|
||||
|
|
@ -65,7 +65,7 @@ in
|
|||
|
||||
# Apparmor https://wiki.archlinux.org/title/AppArmor#Installation
|
||||
(optional cfg.expensive "lsm=landlock,lockdown,yama,apparmor,bpf")
|
||||
];
|
||||
]);
|
||||
|
||||
boot.kernel.sysctl = {
|
||||
"kernel.yama.ptrace_scope" = mkOverride 500 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue