2
0
Files
liminix/modules/logging.nix
T
2025-11-11 21:49:45 +00:00

24 lines
370 B
Nix

{ config, lib, ... }:
let
inherit (lib)
mkIf
mkEnableOption
;
in
{
options = {
logging = {
persistent = {
enable = mkEnableOption "store logs across reboots";
};
};
};
config = {
kernel.config = mkIf config.logging.persistent.enable {
PSTORE = "y";
PSTORE_PMSG = "y";
PSTORE_RAM = "y";
};
};
}