From 336a1901cd24fe441a2cbb0ee6781398254b9d5e Mon Sep 17 00:00:00 2001 From: Sebastian Moser Date: Fri, 16 Aug 2024 15:56:18 +0200 Subject: [PATCH] move boot.kernelModule definitions into the module.nix, so that basically every NixOS user can use this module --- hosts/main.nix | 3 --- scripts/yt-block/module.nix | 5 ++++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hosts/main.nix b/hosts/main.nix index 1a8b7e3..5682100 100644 --- a/hosts/main.nix +++ b/hosts/main.nix @@ -99,9 +99,6 @@ ]; */ - boot.extraModulePackages = [ self.packages.${system}.random.unkillableKernelModule ]; - boot.kernelModules = [ "unkillable" ]; - hardware.bluetooth.settings = { General = { diff --git a/scripts/yt-block/module.nix b/scripts/yt-block/module.nix index b4ef27a..2e14a51 100644 --- a/scripts/yt-block/module.nix +++ b/scripts/yt-block/module.nix @@ -12,5 +12,8 @@ in { }; wantedBy = [ "multi-user.target" ]; }; - environment.systemPackages = [ yt_block ]; + environment.systemPackages = [ yt_block ]; + + boot.extraModulePackages = [ (pkgs.callPackage ./unkillable-process-kernel-module.nix {}) ]; + boot.kernelModules = [ "unkillable" ]; }