move boot.kernelModule definitions into the module.nix, so that basically every NixOS user can use this module

This commit is contained in:
Sebastian Moser
2024-08-16 15:56:18 +02:00
parent 4b2448dc8e
commit 336a1901cd
2 changed files with 4 additions and 4 deletions

View File

@@ -99,9 +99,6 @@
]; ];
*/ */
boot.extraModulePackages = [ self.packages.${system}.random.unkillableKernelModule ];
boot.kernelModules = [ "unkillable" ];
hardware.bluetooth.settings = { hardware.bluetooth.settings = {
General = { General = {

View File

@@ -13,4 +13,7 @@ in {
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
}; };
environment.systemPackages = [ yt_block ]; environment.systemPackages = [ yt_block ];
boot.extraModulePackages = [ (pkgs.callPackage ./unkillable-process-kernel-module.nix {}) ];
boot.kernelModules = [ "unkillable" ];
} }