30 lines
582 B
Nix
30 lines
582 B
Nix
{
|
|
user ? throw "user argument is required",
|
|
home ? throw "home argument is required",
|
|
}:
|
|
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
home-manager.users.${user} = {
|
|
programs.btop.settings.color_theme = "matugen";
|
|
|
|
theme = {
|
|
template.".config/btop/themes/matugen.theme".source = ./theme.theme;
|
|
|
|
reloadExtraConfig = "${
|
|
lib.meta.getExe (
|
|
pkgs.writeShellApplication {
|
|
name = "reload-btop";
|
|
runtimeInputs = with pkgs; [ procps ];
|
|
text = "exec pkill btop -SIGUSR2";
|
|
}
|
|
)
|
|
} &";
|
|
};
|
|
};
|
|
}
|