blob: b5a9d5dffc98817e5abbe7abe8d5aa0c6f839e62 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
{ config, lib, ... }:
let
cfg = config.programs.systemtap;
in
{
options = {
programs.systemtap = {
enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = ''
Install {command}`systemtap` along with necessary kernel options.
'';
};
};
};
config = lib.mkIf cfg.enable {
system.requiredKernelConfig = with config.lib.kernelConfig; [
(isYes "DEBUG")
];
boot.kernel.features.debug = true;
environment.systemPackages = [
config.boot.kernelPackages.systemtap
];
};
}
|