feat: better modules aragement.
This commit is contained in:
parent
de11ee0676
commit
6e967a751f
49 changed files with 27 additions and 19 deletions
14
modules/linux/nixos/watchdog.nix
Normal file
14
modules/linux/nixos/watchdog.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
crony.watchdog.disable = lib.mkEnableOption "Disable watchdog for my laptop.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.crony.watchdog.disable {
|
||||
boot.kernelParams = ["nmi_watchdog=0"];
|
||||
boot.blacklistedKernelModules = ["sp5100_tco"];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue