Implement overlay for catppuccin

This commit is contained in:
Daniel Flanagan 2024-03-22 10:19:40 -05:00
parent 85efa83e66
commit 57110ddd81
2 changed files with 34 additions and 9 deletions

View file

@ -13,15 +13,17 @@
gtk = {
enable = true;
# Currently failing: https://github.com/NixOS/nixpkgs/issues/298043
# theme = {
# name = "Catppuccin-Mocha-Compact-Sapphire-Dark";
# package = pkgs.catppuccin-gtk.override {
# accents = ["sapphire"];
# size = "compact";
# tweaks = ["rimless"];
# variant = "mocha";
# };
# };
# Overlay from https://github.com/NixOS/nixpkgs/issues/298043#issuecomment-2015319496
# Fix on master but not yet in unstable https://github.com/NixOS/nixpkgs/pull/297683
theme = {
name = "Catppuccin-Mocha-Compact-Sapphire-Dark";
package = pkgs.catppuccin-gtk.override {
accents = ["sapphire"];
size = "compact";
tweaks = ["rimless"];
variant = "mocha";
};
};
};
home.pointerCursor = {

View file

@ -14,6 +14,29 @@
# You can change versions, add patches, set compilation flags, anything really.
# https://nixos.wiki/wiki/Overlays
modifications = final: prev: {
pythonPackagesExtensions =
prev.pythonPackagesExtensions
++ [
(
python-final: python-prev: {
catppuccin = python-prev.catppuccin.overridePythonAttrs (oldAttrs: rec {
version = "1.3.2";
src = prev.fetchFromGitHub {
owner = "catppuccin";
repo = "python";
rev = "refs/tags/v${version}";
hash = "sha256-spPZdQ+x3isyeBXZ/J2QE6zNhyHRfyRQGiHreuXzzik=";
};
# can be removed next version
disabledTestPaths = [
"tests/test_flavour.py" # would download a json to check correctness of flavours
];
});
}
)
];
};
# When applied, the unstable nixpkgs set (declared in the flake inputs) will