-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gets rebuilt after each garbage collection #42
Comments
there is a cachix For NixOS users add this to your config: nix.settings.substituters = [ "https://snowflakeos.cachix.org/" ];
nix.settings.trusted-public-keys = [
"snowflakeos.cachix.org-1:gXb32BL86r9bw1kBiw9AJuIkqN49xBvPd1ZW8YlqO70="
]; |
Ok thank you for the information. I will try it for some time. Maybe then we can add it to the readme. |
Hum, this seems to break nixos-conf-editor
EDIT: not related, I just can't build nixos-conf-editor for some reason |
Now that I added the cachix, everytime I do a garbage collection and then a rebuild, the sources get downloaded again. At least it is not rebuilding, so it is definitly an improvement. Is there any way to pin the sources in the store, so that they don't get garbage collected?
|
@Zahrun can you share your full configuration file(s)? Garbage collection will only remove packages that don't have a gc root. If you're installing the package in your NixOS configuration it won't be garbage collected as long as that system generation is active. |
The package is not garbage collected, but the source is.
|
@Zahrun I wonder if setting {
nix.settings.keep-outputs = true;
} https://nixos.org/manual/nix/unstable/command-ref/conf-file.html#conf-keep-outputs |
@jakehamilton it does not change the situation. |
may become irrelevant with #45 |
When installed in NixOS via
configuration.nix
, if I garbage-collect, and then nixos-rebuild, the software-center gets built again. I may want to try the solution mentioned in https://discourse.nixos.org/t/pinned-nixpkgs-keeps-getting-garbage-collected/12912/6 and if that fixes, I'll PR that.Same goes with nixos-conf-editor.
The text was updated successfully, but these errors were encountered: