diff options
author | Acid Bong <acidbong@tilde.club> | 2024-04-17 14:37:58 +0300 |
---|---|---|
committer | Acid Bong <acidbong@tilde.club> | 2024-05-12 10:11:06 +0300 |
commit | 49f6869f71fb2724674ccc18670bbde70843d43f (patch) | |
tree | 8883200364905f93d71e5d4065239bfcf9fda9af /nixos/modules/programs/systemtap.nix | |
parent | 861f29655c591aadd16396c0ac67316861d954cc (diff) |
treewide: remove file-wide `with lib;` 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") ]; |