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

View file

@ -14,6 +14,29 @@
# You can change versions, add patches, set compilation flags, anything really. # You can change versions, add patches, set compilation flags, anything really.
# https://nixos.wiki/wiki/Overlays # https://nixos.wiki/wiki/Overlays
modifications = final: prev: { 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 # When applied, the unstable nixpkgs set (declared in the flake inputs) will