Disable watchdog for my system.
This commit is contained in:
parent
9d659d3d45
commit
6fac76ce09
2 changed files with 16 additions and 0 deletions
|
@ -16,6 +16,7 @@
|
|||
./wireguard.nix
|
||||
./hyprland.nix
|
||||
./sddm.nix
|
||||
./watchdog.nix
|
||||
];
|
||||
|
||||
crony.bluetooth.enable = lib.mkDefault true;
|
||||
|
@ -34,4 +35,5 @@
|
|||
crony.wireguard.enable = lib.mkDefault true;
|
||||
crony.hyprland-nixos.enable = lib.mkDefault true;
|
||||
crony.sddm.enable = lib.mkDefault true;
|
||||
crony.watchdog.disable = lib.mkDefault true;
|
||||
}
|
||||
|
|
14
modules/nixos/watchdog.nix
Normal file
14
modules/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