| 15 Apr 2022 |
Artturin | In reply to @ulrikstrid:matrix.org With that fixed, now I'm getting ‘hydra@192.168.1.254’: error: unexpected end-of-file any idea how to debug this? thats usually caused by mismatched nix versions | 20:35:02 |
Artturin | between the daemon and client | 20:35:35 |
@ulrikstrid:matrix.org | That seems likely, my hydra runner seems to have nixUnstable (2.8....) and the builder 2.7 | 20:38:12 |
@ulrikstrid:matrix.org | Trying to downgrade my hydra machine | 20:38:18 |
Artturin | github issue search is not the best :/ | 20:39:01 |
@ulrikstrid:matrix.org | Now the question is... why can't I downgrade my server? 😂 | 20:40:19 |
Artturin | i don't know, i can't see your screen | 20:43:53 |
Artturin | thse are the nix versions available ``` nix-repl> nixVersions. nixVersions.unfix nixVersions.override nixVersions.extend nixVersions.overrideDerivation nixVersions.nix_2_3 nixVersions.recurseForDerivations nixVersions.nix_2_4 nixVersions.stable nixVersions.nix_2_5 nixVersions.unstable nixVersions.nix_2_6 nixVersions.nix_2_7
| 20:44:25 |
@ulrikstrid:matrix.org | Yeah, sorry, probably more of a rethorical question... I have this:
nix = {
package = pkgs.nix;
extraOptions = ''
experimental-features = nix-command flakes
'';
};
| 20:44:34 |
Artturin | * thse are the nix versions available
nix-repl> nixVersions.
nixVersions.**unfix** nixVersions.override
nixVersions.extend nixVersions.overrideDerivation
nixVersions.nix\_2\_3 nixVersions.recurseForDerivations
nixVersions.nix\_2\_4 nixVersions.stable
nixVersions.nix\_2\_5 nixVersions.unstable
nixVersions.nix\_2\_6
nixVersions.nix\_2\_7
| 20:44:39 |
@ulrikstrid:matrix.org | And I apply it via my flake (which works for everything else) with a switch | 20:44:52 |
@ulrikstrid:matrix.org | But when I ssh in to the server and run nix --version it still tells me 2.8.... | 20:45:15 |
Artturin | pkgs.nix is 2.7.0 | 20:45:34 |
Artturin | on unstable at least | 20:46:02 |
@ulrikstrid:matrix.org | I'm on unstable. but it should still be 2.7.0 | 20:46:04 |
Artturin | forgot you we're trying to go back from 2.8 | 20:46:37 |
Artturin | * forgot you were trying to go back from 2.8 | 20:46:42 |
Artturin | restart the nix daemon | 20:46:49 |
Artturin | sudo systemctl restart nix-daemon.service | 20:47:01 |
@ulrikstrid:matrix.org | Trying a full reboot | 20:48:52 |
@ulrikstrid:matrix.org | Not even that helped | 20:49:38 |
Artturin | Ulrik Strid: nix doctor | 20:56:13 |
Artturin | * Ulrik Strid: nix doctor -vvvv | 20:56:17 |
@ulrikstrid:matrix.org | In reply to @artturin:matrix.org Ulrik Strid: nix doctor -vvvv It seems to be pretty happy:
inst store uri: local
[PASS] PATH contains only one nix version.
[PASS] All profiles are gcroots.
[PASS] Client protocol matches store protocol.
| 21:01:13 |
@ulrikstrid:matrix.org | But I still get
nix --version
nix (Nix) 2.8.0pre20220405_5fe4fe8
| 21:01:34 |
@ulrikstrid:matrix.org | My guess is that I have some strange error in my script, but I have to go to bed now so I'll have to figure this out tomorrow | 21:02:02 |
@ulrikstrid:matrix.org | Thanks for the help! :) | 21:02:07 |
| 16 Apr 2022 |
@ulrikstrid:matrix.org | Artturin: I figured out why I was getting nix 2.8.0pre..., it's because hydra points to master nix when I'm using it as a flake | 05:49:34 |
@ulrikstrid:matrix.org | Anyone knows of a good git revision that works with 2.7.0? Or is hydra fixed in unstable nixpkgs now? | 14:44:44 |
@ulrikstrid:matrix.org | I guess we're waiting for https://github.com/NixOS/nixpkgs/pull/160202 ? What are the blockers here? Can I help it move forward? | 15:01:14 |