!9IQChSjwSHXPPWTa:lix.systems

Lix

628 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-rooms197 Servers

Load older messages


SenderMessageTime
15 Oct 2024
@jade_:matrix.org@jade_:matrix.org if you are trying to ask the actual question "where is my nix binary", you want command -v nix, which nix, type -p nix 21:43:27
@kfears:matrix.orgKFears (tragedy arc) So /etc/nix is included because it's called "nix" and it's added to PATH but it's also a directory so it's skipped when you run nix command? 21:43:38
@whovian9369:matrix.orgWhovian9369 I've personally been fond of type -s nix for getting the symlink in PATH and the actual executable. 21:44:20
@jade_:matrix.org@jade_:matrix.org
In reply to @kfears:matrix.org
So /etc/nix is included because it's called "nix" and it's added to PATH but it's also a directory so it's skipped when you run nix command?
» whereis hosts
hosts: /etc/hosts /usr/share/man/man5/hosts.5.gz
21:45:26
@jade_:matrix.org@jade_:matrix.orgit's included because whereis does not return you just executables21:45:46
@whovian9369:matrix.orgWhovian9369(Gonna gently poke Jade here quickly!)22:11:44
@jade_:matrix.org@jade_:matrix.orgwhat, about the flakes? i am currently focused on other things. can you file a bug report if you can diagnose it with a smaller example to return unexpected output? no promises it will get fixed but it would be good to have the defect documented.22:23:59
@jade_:matrix.org@jade_:matrix.org

is there a reasonable procedure to debug issues like this one?

error: cycle detected in build of '/nix/store/aksg7yap79slndh0s0bx5vr422vbzcr1-capnproto-1.0.2.drv' in the references of output 'bin' from output 'dev'

so far as i can tell, the output in question is deleted from the disk, which is highly impolite of the lix daemon. keep-failed will keep the build directory but not the output directory. i did file a bug that the error sucks, but we surely also need a way of keeping the bad outputs somewhere? https://git.lix.systems/lix-project/lix/issues/551

22:31:41
@whovian9369:matrix.orgWhovian9369jade - I'll take a shot at it, thanks for the time and sorry to interrupt then!22:32:17
@jade_:matrix.org@jade_:matrix.orgokay, keep-failed will only keep around bad outputs if they are non-reproducible, but not in these other instances. that's so unhelpful22:36:08
@kfears:matrix.orgKFears (tragedy arc)This is a relatively small thing, but thank you for how fast Lix rebuilds!22:38:33
@enzime:nixos.dev@enzime:nixos.dev left the room.23:59:18
16 Oct 2024
@sigmasquadron:matrix.orgSigmaSquadron
In reply to @jade_:matrix.org

is there a reasonable procedure to debug issues like this one?

error: cycle detected in build of '/nix/store/aksg7yap79slndh0s0bx5vr422vbzcr1-capnproto-1.0.2.drv' in the references of output 'bin' from output 'dev'

so far as i can tell, the output in question is deleted from the disk, which is highly impolite of the lix daemon. keep-failed will keep the build directory but not the output directory. i did file a bug that the error sucks, but we surely also need a way of keeping the bad outputs somewhere? https://git.lix.systems/lix-project/lix/issues/551

If it's nixpkgs, add breakpointHook to nativeBuildInputs and put a non-zero exit command in the postFixup. You can then use cntr to inspect the outputs.

13:09:33
@hexa:lossy.networkhexahm, I noticed that ctrl+c'ing a remote build locally does not reliably stop the build on the remote host14:04:24
@hexa:lossy.networkhexawhich results in me waiting for a lack the next time I start the build14:04:51
@hexa:lossy.networkhexais that a behavior anyone else noticed as well?14:05:04
@k900:0upti.meK900Yeah, something got funny with it at some point14:07:06
@hexa:lossy.networkhexaok, filing a bug14:07:41
@hexa:lossy.networkhexahttps://git.lix.systems/lix-project/lix/issues/552 if you want to subscribe14:10:54
@daagaak:matrix.orgdaagaakIs there a quick way to tell whether lix thinks it can substitute a given derivation? One of my machines suddenly thinks it wants to rebuild all of my homelab from scratch but my local attic cache seems to have it cached. I can't work out why that one machine wants to rebuild everything.14:22:38
@linus:schreibt.jetztLinux Hackerman daagaak: you can try nix path-info --store <cache URL> /nix/store/... 14:50:50
@linus:schreibt.jetztLinux Hackermanoh wait that doesn't really help14:51:17
@linus:schreibt.jetztLinux Hackerman but maybe you're running into the negative caching, try adding --narinfo-cache-negative-ttl 0 to your command 14:51:33
@kfears:matrix.orgKFears (tragedy arc)Hmm, for lix-installer, any suggestions how to cure existing Nix installs?14:59:16
@kfears:matrix.orgKFears (tragedy arc) * Hmm, for lix-installer, any suggestions how to cure existing CppNix installs?14:59:21
@kfears:matrix.orgKFears (tragedy arc) I'm looking at fixing the test cases, and because Lix is installed using nix-env (gross hack), there's an issue with getting conflicts in the profile between Lix and CppNix 15:00:03
@kfears:matrix.orgKFears (tragedy arc) I suppose I can nix-env --uninstall the CppNix if I find it? lol 15:01:45
@charles:computer.surgeryCharles

when building my system i've been seeing:

cp: cannot stat '/nix/store/aqb4cnbs22cm03v5sdxcz32hi3z1l5mr-source/host/compy/boot/ssh_host_ed25519_key': No such file or directory
warning: failed to create initrd secrets for "NixOS - Configuration 186", an older generation
note: this is normal after having removed or renamed a file in `boot.initrd.secrets

and i'm wondering what i need to do to fix it. not even the /nix/store/nix/store/aqb4cnbs22cm03v5sdxcz32hi3z1l5mr-source path exists. relevant part of my config is here: https://gitlab.computer.surgery/charles/dotfiles/-/blob/290496f58149acb41d136082743e7c698db140e0/host/compy/boot/default.nix#L58-59

any ideas?

18:22:21
@jade_:matrix.org@jade_:matrix.org
In reply to @daagaak:matrix.org
Is there a quick way to tell whether lix thinks it can substitute a given derivation? One of my machines suddenly thinks it wants to rebuild all of my homelab from scratch but my local attic cache seems to have it cached. I can't work out why that one machine wants to rebuild everything.
there is a nix-env command that will probably tell you this
18:31:35
@jade_:matrix.org@jade_:matrix.org

nix-env -q, the -b flag:

       •  --prebuilt-only / -b
          Show  only  derivations  for which a substitute is registered, i.e., there is a pre-built
          binary available that can be downloaded in lieu of building the  derivation.  Thus,  this
          shows all packages that probably can be installed quickly.
18:39:06

Show newer messages


Back to Room ListRoom Version: 10