mcelog: use .service file from upstream

+10 -12
+10 -12
nixos/modules/hardware/mcelog.nix
··· 3 3 with lib; 4 4 5 5 { 6 - meta.maintainers = [ maintainers.grahamc ]; 6 + meta.maintainers = with maintainers; [ grahamc ]; 7 7 options = { 8 8 9 9 hardware.mcelog = { ··· 19 19 }; 20 20 21 21 config = mkIf config.hardware.mcelog.enable { 22 - systemd.services.mcelog = { 23 - description = "Machine Check Exception Logging Daemon"; 24 - wantedBy = [ "multi-user.target" ]; 25 - 26 - serviceConfig = { 27 - ExecStart = "${pkgs.mcelog}/bin/mcelog --daemon --foreground"; 28 - SuccessExitStatus = [ 0 15 ]; 22 + systemd = { 23 + packages = [ pkgs.mcelog ]; 29 24 30 - ProtectHome = true; 31 - PrivateNetwork = true; 32 - PrivateTmp = true; 25 + services.mcelog = { 26 + wantedBy = [ "multi-user.target" ]; 27 + serviceConfig = { 28 + ProtectHome = true; 29 + PrivateNetwork = true; 30 + PrivateTmp = true; 31 + }; 33 32 }; 34 33 }; 35 34 }; 36 - 37 35 }