mcelog: use .service file from upstream

Changed files
+10 -12
nixos
modules
hardware
+10 -12
nixos/modules/hardware/mcelog.nix
···
with lib;
{
-
meta.maintainers = [ maintainers.grahamc ];
options = {
hardware.mcelog = {
···
};
config = mkIf config.hardware.mcelog.enable {
-
systemd.services.mcelog = {
-
description = "Machine Check Exception Logging Daemon";
-
wantedBy = [ "multi-user.target" ];
-
-
serviceConfig = {
-
ExecStart = "${pkgs.mcelog}/bin/mcelog --daemon --foreground";
-
SuccessExitStatus = [ 0 15 ];
-
ProtectHome = true;
-
PrivateNetwork = true;
-
PrivateTmp = true;
};
};
};
-
}
···
with lib;
{
+
meta.maintainers = with maintainers; [ grahamc ];
options = {
hardware.mcelog = {
···
};
config = mkIf config.hardware.mcelog.enable {
+
systemd = {
+
packages = [ pkgs.mcelog ];
+
services.mcelog = {
+
wantedBy = [ "multi-user.target" ];
+
serviceConfig = {
+
ProtectHome = true;
+
PrivateNetwork = true;
+
PrivateTmp = true;
+
};
};
};
};
}