Skip to content

Conversation

@kachick
Copy link
Owner

@kachick kachick commented Aug 7, 2025

Resolves GH-754

Comment on lines 34 to 36
# Also required the binary cache by special reasons
# TODO: Remove after nixos-25.11. See overlays for detail
pkgs.gnome-keyring
Copy link
Owner Author

Choose a reason for hiding this comment

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

Hmm... the build in local takes longtime, however that overlay seems not working in GHA CI 🤔
(Copying from official binary cache)

copying path '/nix/store/8lw10qpjyq4y8f03c5588iqgcf1wscvw-gnome-keyring-48.0' from 'https://cache.nixos.org/'...

Comment on lines +4 to +11
nixConfig = {
extra-substituters = [
"https://kachick-dotfiles.cachix.org"
];
extra-trusted-public-keys = [
"kachick-dotfiles.cachix.org-1:XhiP3JOkqNFGludaN+/send30shcrn1UMDeRL9XttkI="
];
};
Copy link
Owner Author

Choose a reason for hiding this comment

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

Also add these in NixOS and home-manager config might be better...?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Just adding trusted-users are okay for now. ee8a24d

Currently added only on NixOS. Can I also add it in home-manager?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Ah, it is the config for user definition, not the user config...

Copy link
Owner Author

Choose a reason for hiding this comment

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

I'll update it if having bad experience on non-NixOS

Copy link

Choose a reason for hiding this comment

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

plz do <3

@kachick
Copy link
Owner Author

kachick commented Aug 7, 2025

Consider only NixOS for now. Other distro and macOS + home-manager might be followed in separate PRs.

@kachick
Copy link
Owner Author

kachick commented Aug 7, 2025

And it seems working great. CI time is only added 3.5 -> 7.5 minutes in first execution.
And not large the required binary cache sizes. 😮

image

@kachick kachick merged commit 3df0aa4 into main Aug 7, 2025
17 checks passed
@kachick kachick deleted the cachix branch August 7, 2025 19:44
@kachick
Copy link
Owner Author

kachick commented Aug 8, 2025

image

schedule:
# Every Monday 9:17 JST
- cron: '17 0 * * 1'
# # Every Wednesday 9:17 JST
# - cron: '17 0 * * 3'
# # Every Friday 9:17 JST
# - cron: '17 0 * * 5'

Also shared the 5GiB OSS limit with other repositories.
Especially adding darwin here, I should consider the GC cycle.

@kachick
Copy link
Owner Author

kachick commented Aug 8, 2025

https://docs.cachix.org/garbage-collection
I don't need bunch of history for dotfiles caches. So I guess it is okay for now.
I may reconsider additional way when required, for example self hosting attic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Personal binary cache for Nix

2 participants