refactor home/terminal refactor home/apps refactor home/services refactor home/games
18 lines
512 B
Nix
18 lines
512 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
mergedConfig = pkgs.runCommand "mergedConfig" {} ''
|
|
mkdir -p $out/themes
|
|
${pkgs.gnused}/bin/sed 's/blankFlavor/${config.catppuccin.flavor}/g' \
|
|
${./btop.conf} > $out/btop.conf
|
|
cp ${pkgs.catppuccin-btop-git}/themes/catppuccin_latte.theme $out/themes/
|
|
cp ${pkgs.catppuccin-btop-git}/themes/catppuccin_${config.catppuccin.flavor}.theme $out/themes/nixos.theme
|
|
'';
|
|
in {
|
|
home.file.".config/btop" = {
|
|
source = mergedConfig;
|
|
recursive = true;
|
|
};
|
|
}
|