Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions home-manager/nix/nix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,13 @@
"nix-command"
"flakes"
];
use-xdg-base-directories = true;
substituters = [
"https://cache.nixos.org"
extra-substituters = [
"https://cache.garnix.io"
"https://cloudtide.cachix.org"
"https://nix-community.cachix.org"
"https://yazi.cachix.org"
];
trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
extra-trusted-public-keys = [

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The order of keys in extra-trusted-public-keys does not match the order of URLs in extra-substituters. While this doesn't affect functionality, maintaining a consistent order (e.g., alphabetical or matching the substituters list) makes it significantly easier to verify that each cache has its corresponding public key and improves long-term maintainability.

"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="

Copilot AI Apr 4, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Garnix public key entry uses the identifier cache.garnix.io (no -1 suffix), while the other substituter keys follow the common <host>-1: pattern. If Garnix signs with a different key name (e.g. cache.garnix.io-1), Nix will treat signatures as untrusted and the cache will be ignored. Please verify the expected key name from Garnix and update the prefix so it matches the signing key identifier.

Suggested change
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
"cache.garnix.io-1:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="

Copilot uses AI. Check for mistakes.
"cloudtide.cachix.org-1:9NZ1Mah2+u8cd/CmVffFV23z5uFNpZSrhfgTt5fuN/4="
Expand Down
Loading