aboutsummaryrefslogtreecommitdiffstats
path: root/modules/system/btop/default.nix
blob: 1834aa20bc830abcc9cd4a6a3cbcfea4a5c56922 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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;
    };
  };
}