Sender | Message | Time |
---|---|---|
30 Apr 2025 | ||
I found this https://discourse.nixos.org/t/why-is-my-nix-shell-rebuilding-every-day-solved/15528 | 06:01:46 | |
Should I add keep-outputs and keep-derivations into my system config or into the flake config? I am a bit confused by that... | 06:14:18 | |
I'd try it out in the flake first | 06:38:46 | |
altho the user added it to their configuration.nix https://gitlab.com/engmark/root/-/commit/2d76e110f0e91dadcf376e8e8d7be01d14ab47cf | 06:40:15 | |
yeah, thats for nixos. are you running nix develop manually Šimon Brandner ? or are you using direnv to trigger rebuilds? | 14:32:37 | |
Do you mean I should set it system wide? I am using direnv | 14:33:20 | |
nix develop --build is what you want, nix develop --command bash -c buildPhase launches a dev shell and tries to run the bash command buildPhase, it won't find it, since its an environment variable. What are the errors you get when you run --build? | 14:36:16 | |
and you're just doing use flake in your .envrc? what does your flake look like? | 14:38:09 | |
* and you're just doing what does your flake look like? | 14:38:21 | |
Yes Right now like so
| 14:38:57 | |
right so that nixConfig can be configured like this https://nix.dev/manual/nix/2.28/command-ref/conf-file.html or it can go in whatever flake is producing your configuration files. have you looked at caching? that might save some time. | 14:42:11 | |
What are you currently doing that seems to trigger the build? I'm wondering if its in your devshell, or if something else is triggering the rebuild, without seeing the dependencies its hard to say what the issue may be. | 14:44:31 | |
The
| 14:47:49 | |
Hmm, nothing jumping out to me What platform are you on? When exactly does the devshell rebuild? (On every activation, after specific commands, how frequently?) Are you updating flake inputs or the dependencies of your shell frequently? Is the flake lock stable? | 15:01:17 | |
* Hmm, nothing jumping out to me. When exactly does the devshell rebuild? (On every activation, after specific commands, how frequently?) Are you updating flake inputs or the dependencies of your shell frequently? Is the flake lock stable? If you're using nixos or nix-darwin, it could help to check if you're space constrained or if you have the garbage collector running frequently. | 15:03:35 | |
To be clear I only added the The rebuild happens once in a while I guess. E.g. yesterday evening I was using the dev shell ( I haven't done any changes to my system or the flake in between those times GC has this setup
Does this answer your questions? | 15:06:24 | |
It does seem strange that it triggered a rebuild if you didnt modify the flake or its dependencies. https://github.com/nix-community/nix-direnv?tab=readme-ov-file#manual-reload-of-the-nix-environment may be helpful, at least it wont rebuild when you don't want to, it'll give you that option. | 15:25:01 | |
Maybe du -hsc /nix/store and see if that is taking up a lot of your system storage, if so that may be our answer. | 15:26:05 | |
I am not sure I follow a 100%? | 15:41:52 | |
(it indeed is taking up a lot of space) | 15:45:53 | |
(not sure what to make of it in the context of this issue) | 15:46:05 | |
Sorry, I wasn't being very clear. I guess I meant: could the issue be that its being garbage collected prematurely because there isn't much room in the store leading to the rebuilds? | 16:48:28 | |
No worries, but no, that is not the case | 17:24:48 | |
19:53:43 | ||
1 May 2025 | ||
00:03:29 | ||
Hey guys I have a question.
And then pass this configured instance as
I thought that this ensures that the correctly defined nixpkgs is used throughout my
Removing the I tried googling but found it really difficult to find information regarding this. Any help would be highly appreciated! | 00:09:22 | |
In reply to @leons_pferd:matrix.orgdon't use specialArgs to pass pkgs, use { nixpkgs.pkgs = pkgs; } to pass it the non-special way | 00:20:09 | |
that's what the message is trying to tell you | 00:20:35 | |
if you don't pass it anything, then, well, nixpkgs.lib.nixosSystem is from nixpkgs so it knows to use the thing from nixpkgs | 00:21:08 | |
Do you know what the nixosModules.readOnlyPkgs is that the warning is talking about? | 09:08:06 |