Nix Flakes | 881 Members | |
| 175 Servers |
| Sender | Message | Time |
|---|---|---|
| 18 Jan 2024 | ||
| Yes - I do. HEAVILY. We use nix-direnv internally (though we might switch to flake_env at some point if I can get the flake_env implementation up to snuff with nix-direnv features). We start with devShells for the basic stuff. For instance, we do a LOT of python here (against my wishes) and so we'll start with a devShell that just installs latest python. We then start poking around nixpkgs for stuff we need as we need it and use that. I tend to prefer this solution over dream2nix or poetry2nix, as I have found at least poetry2nix to be rather fragile (haven't tried dream2nix). We have a fair amount of interproject dependence and we simply bump as necessary. Myself and a coworker manage a lot of the dependencies and so we are aware of breaking changes and the like without needing to spend a ton of time on it. Regarding CI: We have used Github Actions, GitLab CI, and I have started using sr.ht's build tooling. Both github and gitlab have been perfectly fine. Sr.ht's is a bit more basic, but for what I am doing there that's fine and dandy. Regarding follows, I think tomberek is saying that setting something like | 15:37:26 | |
| 19 Jan 2024 | ||
| do flake.locks have a specification? I looked through both the rfc repo and the nix repo and couldn't find anything except for soure code. I would assume that there should be some formal-ish document describing the format esp. since there is version field in every context of this question is that yesterday I read through the robotonix docs and stumbled upon the over-the-air updater which is just a number that increases every version, so usually `date "+%s". this reminded me of the problem I had with the soa record serial field when I built nixos-dns which uses the exact same format to detect updates/changes. locking at a random flake.lock I noticed that every entry, except for root, has a | 01:05:32 | |
| 05:11:41 | ||
| 05:14:27 | ||
In reply to @janik0:matrix.orgClosest thing in written form might be the closed: https://github.com/NixOS/rfcs/pull/49/files#diff-7e8d05fadc397ee6d143d6b47af2967d5f467b59820590c69dfc69da0173684dR266 . Also note that we are considering changing the format: https://github.com/NixOS/nix/issues/7730 | 15:01:18 | |
| 22 Jan 2024 | ||
| 15:05:35 | ||
| 19:28:54 | ||
| 23 Jan 2024 | ||
| 17:54:54 | ||
| 18:17:33 | ||
| 19:28:47 | ||
| 19:28:58 | ||
| 19:29:12 | ||
| 24 Jan 2024 | ||
| 07:46:37 | ||
| 27 Jan 2024 | ||
| 14:04:20 | ||
| 16:55:37 | ||
| 16:59:44 | ||
| 17:05:49 | ||
| 28 Jan 2024 | ||
| 14:04:00 | ||
hey folkss, when running nix store gc, how does nix know what to delete? does it know what flake.lock files do I have? | 21:13:05 | |
nix-store --gc --print-roots | 21:30:14 | |
| Any store paths that are transitively referenced by any gc roots — which in practice are running processes and any symlinks outside of the store to paths inside the store — won't be deleted | 21:30:56 | |
| flake.lock doesn't come into the picture directly | 21:31:45 | |
In reply to @lxsameer:matrix.orgIt doesn't know about flake.lock by default. But it's possible to add it as a root manually. Some projects, e.g. direnv, do that for you. | 22:24:36 | |
| Interesting | 22:41:29 | |
| I'm not on nixos and i want to gc the store without removing my flake related packages | 22:42:09 | |
| what do you mean by "flake related packages"? | 22:43:34 | |
I use flakes to manage the dependencies in my projects. for example i install clang toolchain and few other things in my flake, when I do nix store gc I don't want nix to remove them | 22:45:06 | |
if you have done something like nix build, that creates a result symlink in the flake directory. That symlink will keep those packages from being garbage collected | 22:46:17 | |
| ah ok, what about packages that I add to my devshell ? | 22:47:14 | |
nix develop doesn't create a gc root (except for processes running in that shell) | 22:52:16 | |