20 lines
477 B
Nix
20 lines
477 B
Nix
{ lib, config, namespace, ... }:
|
|
let
|
|
inherit (lib) mkIf;
|
|
cfg = config.${namespace}.programs.btop;
|
|
in
|
|
{
|
|
options.${namespace}.programs.btop = {
|
|
enable = lib.mkEnableOption "btop";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
programs.btop.enable = true;
|
|
|
|
home.file.".config/btop/btop.conf".text =
|
|
builtins.readFile ./config/btop.conf;
|
|
home.file.".config/btop/themes/catppuccin_mocha.theme".text =
|
|
builtins.readFile ./config/catppuccin_mocha.theme;
|
|
};
|
|
}
|