diff options
Diffstat (limited to 'modules/system/btop/default.nix')
| -rw-r--r-- | modules/system/btop/default.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/modules/system/btop/default.nix b/modules/system/btop/default.nix new file mode 100644 index 0000000..1834aa2 --- /dev/null +++ b/modules/system/btop/default.nix @@ -0,0 +1,23 @@ +# Cross-platform graphical process and system monitor +{ + config, + lib, + ... +}: +{ + options.system.btop = { + enable = lib.mkEnableOption "Enables btop."; + package = lib.mkOption { + type = lib.types.package; + readOnly = true; + default = config.programs.btop.package; + description = "The btop package to use."; + }; + }; + + config = lib.mkIf config.system.btop.enable { + programs.btop = { + enable = true; + }; + }; +} |
