diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2024-05-12 21:52:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-12 21:52:15 +0200 |
commit | 4433bbfd2a22dedc0372b3eb7d90b57631c9fbed (patch) | |
tree | ded93c6128f2e660be89f8fb5b7676a24144a6fd /nixos/modules/programs/systemtap.nix | |
parent | 7047535b1cd4df09d5f3e93ff8e0e0133a1d7816 (diff) | |
parent | 49f6869f71fb2724674ccc18670bbde70843d43f (diff) |
Merge pull request #304773 from acid-bong/no-libs
treewide: remove file-wide `with lib;` uses in nixos/modules/programs
Diffstat (limited to 'nixos/modules/programs/systemtap.nix')
-rw-r--r-- | nixos/modules/programs/systemtap.nix | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/nixos/modules/programs/systemtap.nix b/nixos/modules/programs/systemtap.nix index d23bd13fdd85d..e61e255e52217 100644 --- a/nixos/modules/programs/systemtap.nix +++ b/nixos/modules/programs/systemtap.nix @@ -1,14 +1,12 @@ { config, lib, ... }: -with lib; - let cfg = config.programs.systemtap; in { options = { programs.systemtap = { - enable = mkOption { - type = types.bool; + enable = lib.mkOption { + type = lib.types.bool; default = false; description = '' Install {command}`systemtap` along with necessary kernel options. @@ -16,7 +14,7 @@ in { }; }; }; - config = mkIf cfg.enable { + config = lib.mkIf cfg.enable { system.requiredKernelConfig = with config.lib.kernelConfig; [ (isYes "DEBUG") ]; |