python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / nixos / modules / hardware / mcelog.nix
blobbe8fc8cd1925da2e63c402d1b251e7f518bd7b12
1 { config, lib, pkgs, ... }:
3 with lib;
6   meta.maintainers = with maintainers; [ grahamc ];
7   options = {
9     hardware.mcelog = {
10       enable = mkOption {
11         type = types.bool;
12         default = false;
13         description = lib.mdDoc ''
14           Enable the Machine Check Exception logger.
15         '';
16       };
17     };
19   };
21   config = mkIf config.hardware.mcelog.enable {
22     systemd = {
23       packages = [ pkgs.mcelog ];
25       services.mcelog = {
26         wantedBy = [ "multi-user.target" ];
27         serviceConfig = {
28           ProtectHome = true;
29           PrivateNetwork = true;
30           PrivateTmp = true;
31         };
32       };
33     };
34   };