dmesg_restrict is now default on NixOS 24.11

This commit is contained in:
Sébastien Bourdeauducq 2024-12-04 12:33:07 +08:00
parent 9e74ec65bb
commit 9558882e2b
3 changed files with 2 additions and 1 deletions

View File

@ -732,7 +732,6 @@ in
users.extraUsers.nix = { users.extraUsers.nix = {
isNormalUser = true; isNormalUser = true;
}; };
boot.kernel.sysctl."kernel.dmesg_restrict" = true;
services.udev.packages = [ pkgs.sane-backends ]; services.udev.packages = [ pkgs.sane-backends ];
nix.settings.max-jobs = 10; nix.settings.max-jobs = 10;

View File

@ -12,6 +12,7 @@ in
boot.loader.systemd-boot.memtest86.enable = true; boot.loader.systemd-boot.memtest86.enable = true;
boot.loader.grub.memtest86.enable = true; boot.loader.grub.memtest86.enable = true;
boot.kernel.sysctl."kernel.dmesg_restrict" = false;
imports = imports =
[ [

View File

@ -15,6 +15,7 @@ in
boot.loader.generic-extlinux-compatible.enable = true; boot.loader.generic-extlinux-compatible.enable = true;
boot.kernelParams = if rpi4 then ["cma=64M"] else []; # work around https://github.com/raspberrypi/linux/issues/3208 boot.kernelParams = if rpi4 then ["cma=64M"] else []; # work around https://github.com/raspberrypi/linux/issues/3208
boot.initrd.includeDefaultModules = false; boot.initrd.includeDefaultModules = false;
boot.kernel.sysctl."kernel.dmesg_restrict" = false;
fileSystems = { fileSystems = {
"/" = { "/" = {