move all url fetches into main flake

This commit is contained in:
Sean Kovacs 2026-01-15 22:39:47 -05:00
commit b381e1785d
Signed by: sckova
GPG key ID: 00F325187C68651A
7 changed files with 144 additions and 72 deletions

View file

@ -3,19 +3,12 @@
pkgs,
...
}: let
catppuccin-btop = pkgs.fetchFromGitHub {
owner = "catppuccin";
repo = "btop";
rev = "f437574b600f1c6d932627050b15ff5153b58fa3";
sha256 = "sha256-mEGZwScVPWGu+Vbtddc/sJ+mNdD2kKienGZVUcTSl+c=";
};
mergedConfig = pkgs.runCommand "mergedConfig" {} ''
mkdir -p $out/themes
${pkgs.gnused}/bin/sed 's/blankFlavor/${config.catppuccin.flavor}/g' \
${./btop.conf} > $out/btop.conf
cp ${catppuccin-btop}/themes/catppuccin_latte.theme $out/themes/
cp ${catppuccin-btop}/themes/catppuccin_${config.catppuccin.flavor}.theme $out/themes/nixos.theme
cp ${pkgs.catppuccin-btop-git.src}/themes/catppuccin_latte.theme $out/themes/
cp ${pkgs.catppuccin-btop-git.src}/themes/catppuccin_${config.catppuccin.flavor}.theme $out/themes/nixos.theme
'';
in {
home.file.".config/btop" = {