tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
mcelog: use .service file from upstream
Peter Hoeg
8 years ago
f5c0607f
354c979e
+10
-12
1 changed file
expand all
collapse all
unified
split
nixos
modules
hardware
mcelog.nix
+10
-12
nixos/modules/hardware/mcelog.nix
···
3
3
with lib;
4
4
5
5
{
6
6
-
meta.maintainers = [ maintainers.grahamc ];
6
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
22
-
systemd.services.mcelog = {
23
23
-
description = "Machine Check Exception Logging Daemon";
24
24
-
wantedBy = [ "multi-user.target" ];
25
25
-
26
26
-
serviceConfig = {
27
27
-
ExecStart = "${pkgs.mcelog}/bin/mcelog --daemon --foreground";
28
28
-
SuccessExitStatus = [ 0 15 ];
22
22
+
systemd = {
23
23
+
packages = [ pkgs.mcelog ];
29
24
30
30
-
ProtectHome = true;
31
31
-
PrivateNetwork = true;
32
32
-
PrivateTmp = true;
25
25
+
services.mcelog = {
26
26
+
wantedBy = [ "multi-user.target" ];
27
27
+
serviceConfig = {
28
28
+
ProtectHome = true;
29
29
+
PrivateNetwork = true;
30
30
+
PrivateTmp = true;
31
31
+
};
33
32
};
34
33
};
35
34
};
36
36
-
37
35
}