Lix | 1119 Members | |
| Lix user channel. Feel free to discuss on-topic issues here and give each other help. For matrix.to links to the rest of the Lix channels, see: https://wiki.lix.systems/books/lix-organisation/page/matrix-rooms | 305 Servers |
| Sender | Message | Time |
|---|---|---|
| 15 Feb 2026 | ||
| Is there a list of attributes available via builtins.getFlake? Docs only mention "outputs and some metadata", and I'm wondering what metadata is included specifically | 09:59:05 | |
| On top of inputs and outputs, you get all the metadata of every input. The common attributes are type, lastModified (and lastModifiedDate), narHash, and then there are type specific attributes like repo and owner for forge types, rev, shortRev for anything git-esque (including forge-specific types), and probably some other ones as well. I don't think there's a specific list anywhere though it's just another one of those things you have to know, or know where to look for themβ’ | 15:31:38 | |
hmm I was trying to get the git rev from the current flake using getFlake ./., but the result of that contains no rev attribute. Though it seems doing something like this would require an impure build anyway, so not really what I'm looking for | 15:44:12 | |
* hmm I was trying to get the git rev from the current flake using (getFlake (toString ./.)).rev, but the result of that contains no rev attribute. Though it seems doing something like this would require an impure build anyway, so not really what I'm looking for | 15:46:03 | |
Ah, but what you're saying is that this isn't valid syntax to begin with. I only get this rev attribute for the inputs, so e.g. (getFlake (toString ./.)).inputs.nixpkgs.rev would work, but the git rev of the main flake isn't accessible | 15:48:32 | |
| IIRC this kind of attributes is omitted when the worktree is dirty. | 15:50:13 | |
ohhhh turns out I can just get the git rev using self.dirtyRev π² | 15:54:21 | |
Yes, and (getFlake ./.) is the same as self pretty much | 15:59:02 | |
| 16:50:28 | ||
| 17:36:25 | ||
| Hi! I am debugging a build reproducability issue, would need some help. In theory it could be possible that it's some input of this derivation that's already poisoned, but in this case I don't see how that could produce this result. Is there a way to tell nix to keep the build and output directories, even if it does not see a diff? Is it perhaps possible that | 21:45:41 | |
| Ah yeah:
| 21:48:12 | |
In this case nix-build --check not checking the actual store contents seems like quite a bit of a footgun... | 21:48:36 | |
--check not checking the store contents is fine unless you have store corruption, which would only happen if your FS/disk or RAM was fucked | 21:52:55 | |
(you may want to run nix-store --verify --check-contents, i suspect you have more than just that corrupted?) | 21:53:26 | |
| Yeah in this case it's pretty clear that this is a HW fuckup. Good point on verifying my whole store, but unfortunately I could entirely see that this is a one-off, and my non-ECC RAM HW is just working as intended... | 21:55:46 | |
Anyway, is there a command to actually rebuild/repair this store path? nix-store --repair-path only talks about substituters, and nix build --rebuild/nix-build --check clearly does not detect the issue or try to replace anything. | 22:03:35 | |
| Though I guess it would probably be smart to rebuild anything that depends on this, so probably I want a recursive delete anyway... | 22:05:01 | |
couldn't you just..... nix-store --delete /nix/store/hash and rebuild your system/package? | 22:07:06 | |
nix-store --delete ... refuses to delete it since some other paths depend on it, and I don't see a "delete this path and anything that depends on it recursively" option | 22:08:05 | |
| you could probably do that with some what does | 22:21:27 | |
| Well, quite a few nixos-systems... In fact, I just realize this is my booted kernel π
| 22:24:18 | |
| Ok, so deletion is definitely not an option, I need some in-place replacement | 22:24:40 | |
| hmmm you probably didn't build your own kernel though...it probably came from cache.nixos.org.....so shouldn't repair-path work then? | 22:25:16 | |
| I definitely did build my own kernel | 22:25:29 | |
| nix-store --verify --check-contents finished, it found one other bad path in the whole store, so this does not seem like a widespread corruption.
So I guess it's either the RAM or the SSD that's the culprit. | 22:43:02 | |
| Well I just rebooted and both corruptions are gone π | 22:48:04 | |
| oh wow....yay(?) | 22:49:21 | |
| maybe do a memtest overnight hehe | 22:49:59 | |
| 16 Feb 2026 | ||
| 01:40:46 | ||