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