Files
nix/users/configs/gui/btop/default.nix
Nikolaos Karaolidis 9dfbe1203d Add syncthing base
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
2024-07-08 15:56:42 +03:00

35 lines
671 B
Nix

{
user ? throw "user argument is required",
}:
{
config,
lib,
pkgs,
...
}:
let
hmConfig = config.home-manager.users.${user.name};
in
{
home-manager.users.${user.name} = {
programs = {
btop.settings.color_theme = "matugen";
matugen.settings.templates.btop = {
input_path = ./theme.theme;
output_path = "${hmConfig.xdg.configHome}/btop/themes/matugen.theme";
};
};
theme.extraConfig = "${
lib.meta.getExe (
pkgs.writeShellApplication {
name = "reload-btop";
runtimeInputs = with pkgs; [ procps ];
text = "exec pkill btop -SIGUSR2";
}
)
} &";
};
}