| 10 Sep 2024 |
Simon Yde | In reply to @k900:0upti.me ^ do this Hi. currently I find that my WSL system won't build at all, it when I try to rebuild either home-manager or my system config it results in an infinite loop. I tried following this step but it doesn't seem to have an effect | 09:32:37 |
K900 | What do you mean by "infinite loop" exactly? | 09:34:30 |
Simon Yde | like the build never finishes. Normally i use nh to interact with nix, but doing sudo nixos-rebuild switch --flake . doesn't work either, just never progresses | 09:37:36 |
K900 | That sounds weird | 09:41:01 |
K900 | Which Nix version is that on? | 09:41:04 |
K900 | And how long does it get stuck for | 09:41:09 |
Simon Yde | it's strange as i haven't changed my nixos config for this system, yet the nix evaluation never finishes | 09:41:33 |
Simon Yde | In reply to @k900:0upti.me And how long does it get stuck for like one time I left it to see how long it would go and it just went on evaluating for 25 mins+ | 09:47:25 |
Simon Yde | In reply to @k900:0upti.me Which Nix version is that on? ⟩ nix --version
nix (Nix) 2.18.5
| 09:47:56 |
K900 | Try running it with -vvvv to see what it's doing | 09:48:05 |
Simon Yde | $ nix --extra-experimental-features nix-command flakes build --out-link /tmp/nixos-rebuild.fEZKNm/nixos-rebuild .#nixosConfigurations."icarus-wsl".config.system.build.nixos-rebuild -vvvv
evaluating derivation 'git+file:///home/syde/Config#nixosConfigurations."icarus-wsl".config.system.build.nixos-rebuild'
| 09:55:39 |
Simon Yde | this is all that ever happens it would appear | 09:55:55 |
K900 | That... sounds wrong | 09:57:24 |
K900 | Maybe try evaluating it with a newer Nix version or Lix? | 09:58:27 |
| @arexon:matrix.org left the room. | 10:15:13 |
Simon Yde | evaluating withnix eval on a different computer running NixOS
trace: evaluation warning: Use `stdenv.tests` instead. `passthru` is a `mkDerivation` detail.
performing daemon worker op: 7
instantiated 'bootstrap-stage0-stdenv-linux' -> '/nix/store/y3vwfd67h193ynxz98jwn3gd81vblacb-bootstrap-stage0-stdenv-linux.drv'
performing daemon worker op: 7
instantiated 'stdenv-test-succeedOnFailure' -> '/nix/store/8bxfynjfm1l82438dig1fvr6v4g4d6ph-stdenv-test-succeedOnFailure.drv'
trace: evaluation warning: Use `stdenv.tests` instead. `passthru` is a `mkDerivation` detail.
performing daemon worker op: 7
instantiated 'bootstrap-stage0-stdenv-linux' -> '/nix/store/y3vwfd67h193ynxz98jwn3gd81vblacb-bootstrap-stage0-stdenv-linux.drv'
performing daemon worker op: 7
instantiated 'stdenv-test-succeedOnFailure' -> '/nix/store/8bxfynjfm1l82438dig1fvr6v4g4d6ph-stdenv-test-succeedOnFailure.drv'
trace: evaluation warning: Use `stdenv.tests` instead. `passthru` is a `mkDerivation` detail.
performing daemon worker op: 7
instantiated 'bootstrap-stage0-stdenv-linux' -> '/nix/store/y3vwfd67h193ynxz98jwn3gd81vblacb-bootstrap-stage0-stdenv-linux.drv'
performing daemon worker op: 7
instantiated 'stdenv-test-succeedOnFailure' -> '/nix/store/8bxfynjfm1l82438dig1fvr6v4g4d6ph-stdenv-test-succeedOnFailure.drv'
trace: evaluation warning: Use `stdenv.tests` instead. `passthru` is a `mkDerivation` detail.
performing daemon worker op: 7
instantiated 'bootstrap-stage0-stdenv-linux' -> '/nix/store/y3vwfd67h193ynxz98jwn3gd81vblacb-bootstrap-stage0-stdenv-linux.drv'
performing daemon worker op: 7
instantiated 'stdenv-test-succeedOnFailure' -> '/nix/store/8bxfynjfm1l82438dig1fvr6v4g4d6ph-stdenv-test-succeedOnFailure.drv'
trace: evaluation warning: Use `stdenv.tests` instead. `passthru` is a `mkDerivation` detail.
performing daemon worker op: 7
instantiated 'bootstrap-stage0-stdenv-linux' -> '/nix/store/y3vwfd67h193ynxz98jwn3gd81vblacb-bootstrap-stage0-stdenv-linux.drv'
performing daemon worker op: 7
instantiated 'stdenv-test-succeedOnFailure' -> '/nix/store/8bxfynjfm1l82438dig1fvr6v4g4d6ph-stdenv-test-succeedOnFailure.drv'
trace: evaluation warning: Use `stdenv.tests` instead. `passthru` is a `mkDerivation` detail.
error: stack overflow (possible infinite recursion)
| 11:24:59 |
K900 | That sounds very wrong | 11:25:32 |
K900 | Do you have any sort of custom overlays? | 11:25:38 |
Simon Yde | This is my overlays config that I use on all other machine I have
config = {
nixpkgs = {
overlays = [
inputs.nur.overlay
inputs.helix.overlays.default
inputs.nix-ld-rs.overlays.default
inputs.neovim-nightly.overlays.default
inputs.rustaceanvim.overlays.default
(final: prev: {
stable = import inputs.stable {
config = prev.config;
system = prev.system;
};
grawlix = prev.callPackage ./home-manager/packages/grawlix.nix { };
pix2tex = inputs.pix2tex.packages.${prev.system}.default;
delta = final.stable.delta;
swaylock-effects = final.stable.swaylock-effects;
kattis-cli = prev.callPackage ./home-manager/packages/kattis-cli.nix { };
kattis-test = prev.callPackage ./home-manager/packages/kattis-test.nix { };
vimPlugins = prev.vimPlugins // {
mini-nvim = prev.vimUtils.buildVimPlugin {
version = "nightly";
pname = "mini-nvim";
src = inputs.mini-nvim;
};
neogit = prev.vimUtils.buildVimPlugin {
version = "nightly";
pname = "neogit";
src = inputs.neogit;
};
};
})
];
};
};
| 11:30:10 |
Simon Yde | including the wsl instance | 11:30:18 |
K900 | Yeah maybe try removing some of those overlays | 11:31:31 |
Simon Yde | I'm able to build it using sudo nixos-rebuild --flake .#nixosConfiguration.icarus-wsl build but it won't evaluate with nix eval | 11:54:06 |
K900 | Oh wait | 11:57:08 |
K900 | Are you trying to nix eval the entire nixosConfigurations.icarus-wsl? | 11:57:19 |
K900 | You want to nix eval .#nixosConfigurations.icarus-wsl.config.system.build.toplevel | 11:57:28 |
Simon Yde | oh, though that still results in the same stack overflow, even on the proper NixOS config I'm using on my laptop to write this message | 14:20:10 |
K900 | That does not sound right at all | 15:12:19 |
Simon Yde | turns out it's my git that's fucked because of gpg-agent being used for SSH, and it not being able to open pinentry | 19:52:46 |
Simon Yde | I don't know how to work around it | 19:52:50 |
common16 | I'm actually on a similar issue. Do you guys have advice on how to manage injecting the SSH keys? I posted my config yesterday and sometimes my WSL asks me for a passphrase on literally every call to my git origin but other times it asks once and then works for the rest of my session(?) 🤔 | 19:56:56 |