Files
nixpkgs/nixos/modules/hardware/mcelog.nix
Wolfgang Walther 0886339dd1 maintainers: drop grahamc
Inactive since April 2025. Removing according to maintainer guidelines.
2026-01-10 21:31:14 +01:00

37 lines
601 B
Nix

{
config,
lib,
pkgs,
...
}:
{
options = {
hardware.mcelog = {
enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = ''
Enable the Machine Check Exception logger.
'';
};
};
};
config = lib.mkIf config.hardware.mcelog.enable {
systemd = {
packages = [ pkgs.mcelog ];
services.mcelog = {
wantedBy = [ "multi-user.target" ];
serviceConfig = {
ProtectHome = true;
PrivateNetwork = true;
PrivateTmp = true;
};
};
};
};
}