From d5822550b4851957220d7f4e504aa24ece8ad72f Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Thu, 9 Jul 2026 16:36:59 +0800 Subject: [PATCH] fix(catppuccin): use cache for themed ports --- flake.nix | 2 ++ home/base/core/theme.nix | 1 + home/linux/gui/base/desktop-tools.nix | 1 + modules/base/nix.nix | 2 ++ 4 files changed, 6 insertions(+) diff --git a/flake.nix b/flake.nix index e53a9c71..49e5d718 100644 --- a/flake.nix +++ b/flake.nix @@ -17,12 +17,14 @@ # substituers will be appended to the default substituters when fetching packages extra-substituters = [ "https://cache.numtide.com" + "https://catppuccin.cachix.org" # "https://nix-gaming.cachix.org" # "https://nixpkgs-wayland.cachix.org" # "https://install.determinate.systems" ]; extra-trusted-public-keys = [ "niks3.numtide.com-1:DTx8wZduET09hRmMtKdQDxNNthLQETkc/yaX7M4qK0g=" + "catppuccin.cachix.org-1:noG/4HkbhJb+lUAdKrph6LaozJvAeEEZj4N732IysmU=" # "nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4=" # "nixpkgs-wayland.cachix.org-1:3lwxaILxMRkVhehr5StQprHdEo4IrE8sRho9R9HOLYA=" # "cache.flakehub.com-3:hJuILl5sVK4iKm86JzgdXW12Y2Hwd5G07qKtHTOcDCM=" diff --git a/home/base/core/theme.nix b/home/base/core/theme.nix index 35ce701f..9d3265b2 100644 --- a/home/base/core/theme.nix +++ b/home/base/core/theme.nix @@ -8,6 +8,7 @@ catppuccin = { # The default `enable` value for all available programs. enable = true; + cache.enable = true; # one of "latte", "frappe", "macchiato", "mocha" flavor = "mocha"; # one of "blue", "flamingo", "green", "lavender", "maroon", "mauve", "peach", "pink", "red", "rosewater", "sapphire", "sky", "teal", "yellow" diff --git a/home/linux/gui/base/desktop-tools.nix b/home/linux/gui/base/desktop-tools.nix index 7f24ba6a..b2f479c1 100644 --- a/home/linux/gui/base/desktop-tools.nix +++ b/home/linux/gui/base/desktop-tools.nix @@ -33,6 +33,7 @@ # screen locker programs.swaylock.enable = true; + catppuccin.swaylock.enable = false; # Logout Menu programs.wlogout.enable = true; diff --git a/modules/base/nix.nix b/modules/base/nix.nix index 27dda52e..f81c4b9e 100644 --- a/modules/base/nix.nix +++ b/modules/base/nix.nix @@ -29,12 +29,14 @@ "https://mirrors.tuna.tsinghua.edu.cn/nix-channels/store" "https://nix-community.cachix.org" + "https://catppuccin.cachix.org" # my own cache server, currently not used. # "https://ryan4yin.cachix.org" ]; trusted-public-keys = [ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" + "catppuccin.cachix.org-1:noG/4HkbhJb+lUAdKrph6LaozJvAeEEZj4N732IysmU=" "ryan4yin.cachix.org-1:Gbk27ZU5AYpGS9i3ssoLlwdvMIh0NxG0w8it/cv9kbU=" ]; builders-use-substitutes = true;