at 23.11-pre 655 B view raw
1{ config, lib, pkgs, ... }: 2 3with lib; 4 5{ 6 meta.maintainers = with maintainers; [ grahamc ]; 7 options = { 8 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 }; 18 19 }; 20 21 config = mkIf config.hardware.mcelog.enable { 22 systemd = { 23 packages = [ pkgs.mcelog ]; 24 25 services.mcelog = { 26 wantedBy = [ "multi-user.target" ]; 27 serviceConfig = { 28 ProtectHome = true; 29 PrivateNetwork = true; 30 PrivateTmp = true; 31 }; 32 }; 33 }; 34 }; 35}