mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
36 lines
645 B
Nix
36 lines
645 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
meta.maintainers = with maintainers; [ grahamc ];
|
|
options = {
|
|
|
|
hardware.mcelog = {
|
|
enable = mkOption {
|
|
type = types.bool;
|
|
default = false;
|
|
description = ''
|
|
Enable the Machine Check Exception logger.
|
|
'';
|
|
};
|
|
};
|
|
|
|
};
|
|
|
|
config = mkIf config.hardware.mcelog.enable {
|
|
systemd = {
|
|
packages = [ pkgs.mcelog ];
|
|
|
|
services.mcelog = {
|
|
wantedBy = [ "multi-user.target" ];
|
|
serviceConfig = {
|
|
ProtectHome = true;
|
|
PrivateNetwork = true;
|
|
PrivateTmp = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|