summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2022-08-02 17:34:21 +0200
committerQuentin Aristote <quentin@aristote.fr>2022-08-02 17:34:21 +0200
commit4cd1ced9ba7b2ac15694d9cdfea6981e9d661105 (patch)
tree2ceb517e29659bef7d39aeb67a889478e619d6b7
parent3b89eec1ce3bc38f6a9f09d559fe3ce59b80c482 (diff)
os: boot: split hardware section
-rw-r--r--nixos/boot.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/boot.nix b/nixos/boot.nix
index ec800b7..394a7f8 100644
--- a/nixos/boot.nix
+++ b/nixos/boot.nix
@@ -46,5 +46,9 @@
# Hardware
hardware.firmware = with pkgs; [ firmwareLinuxNonfree ];
+ ## mcelog
hardware.mcelog.enable = true;
+ services.udev.extraRules = ''
+ ACTION=="add", KERNEL=="mcelog", SUBSYSTEM=="misc", TAG+="systemd", ENV{SYSTEMD_WANTS}+="mcelog.service"
+ ''
}