summary refs log tree commit diff
path: root/nixos/modules/hardware
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2017-07-27 13:03:36 +0800
committerPeter Hoeg <peter@hoeg.com>2017-07-27 13:06:20 +0800
commitf5c0607f8d566a5aa2cf74346348bcdb492637e4 (patch)
tree78015929d5c6267be922e052161a687df5f5af81 /nixos/modules/hardware
parent354c979ea85d89e8269e71b5ab4d5d73d8b8bc3c (diff)
downloadnixlib-f5c0607f8d566a5aa2cf74346348bcdb492637e4.tar
nixlib-f5c0607f8d566a5aa2cf74346348bcdb492637e4.tar.gz
nixlib-f5c0607f8d566a5aa2cf74346348bcdb492637e4.tar.bz2
nixlib-f5c0607f8d566a5aa2cf74346348bcdb492637e4.tar.lz
nixlib-f5c0607f8d566a5aa2cf74346348bcdb492637e4.tar.xz
nixlib-f5c0607f8d566a5aa2cf74346348bcdb492637e4.tar.zst
nixlib-f5c0607f8d566a5aa2cf74346348bcdb492637e4.zip
mcelog: use .service file from upstream
Diffstat (limited to 'nixos/modules/hardware')
-rw-r--r--nixos/modules/hardware/mcelog.nix24
1 files changed, 11 insertions, 13 deletions
diff --git a/nixos/modules/hardware/mcelog.nix b/nixos/modules/hardware/mcelog.nix
index e4ac7d39053f..13ad238870c2 100644
--- a/nixos/modules/hardware/mcelog.nix
+++ b/nixos/modules/hardware/mcelog.nix
@@ -3,7 +3,7 @@
 with lib;
 
 {
-  meta.maintainers = [ maintainers.grahamc ];
+  meta.maintainers = with maintainers; [ grahamc ];
   options = {
 
     hardware.mcelog = {
@@ -19,19 +19,17 @@ with lib;
   };
 
   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;
+    systemd = {
+      packages = [ pkgs.mcelog ];
+
+      services.mcelog = {
+        wantedBy = [ "multi-user.target" ];
+        serviceConfig = {
+          ProtectHome = true;
+          PrivateNetwork = true;
+          PrivateTmp = true;
+        };
       };
     };
   };
-
 }