move all url fetches into main flake
This commit is contained in:
parent
61799a275e
commit
b381e1785d
7 changed files with 144 additions and 72 deletions
|
|
@ -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" = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue