mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 18:37:04 +03:00
0412bde942
Add missing type information to manually specified enable options or replace them by mkEnableOption where appropriate.
30 lines
594 B
Nix
30 lines
594 B
Nix
{ config, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
let cfg = config.programs.systemtap;
|
|
in {
|
|
|
|
options = {
|
|
programs.systemtap = {
|
|
enable = mkOption {
|
|
type = types.bool;
|
|
default = false;
|
|
description = ''
|
|
Install <command>systemtap</command> along with necessary kernel options.
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
config = mkIf cfg.enable {
|
|
system.requiredKernelConfig = with config.lib.kernelConfig; [
|
|
(isYes "DEBUG")
|
|
];
|
|
boot.kernel.features.debug = true;
|
|
environment.systemPackages = [
|
|
config.boot.kernelPackages.systemtap
|
|
];
|
|
};
|
|
|
|
}
|