2025-05-23 18:01:24 -04:00
|
|
|
# Check memory errors with: ras-mc-ctl --error-count
|
2025-04-16 20:36:08 -04:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [ ];
|
|
|
|
|
|
|
|
options.me = {
|
|
|
|
ecc.enable = lib.mkOption {
|
|
|
|
type = lib.types.bool;
|
|
|
|
default = false;
|
|
|
|
example = true;
|
|
|
|
description = "Whether we want to install ecc.";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf config.me.ecc.enable (
|
|
|
|
lib.mkMerge [
|
|
|
|
{
|
|
|
|
hardware.rasdaemon.enable = true;
|
|
|
|
}
|
|
|
|
]
|
|
|
|
);
|
|
|
|
}
|