12 Aug 2021 |
@yusdacra:nixos.dev | hmm wait why do i not have that file | 19:59:31 |
David Arnold (blaggacao) | you can remove it... and that should work for nor | 19:59:30 |
David Arnold (blaggacao) | * you can remove it... and that should work for now | 19:59:38 |
@yusdacra:nixos.dev | oh its on digga | 19:59:45 |
David Arnold (blaggacao) | maybe yes: https://github.com/divnix/devos/blob/5b89e53e7a39c603bed327023c953d0b30433ec2/flake.nix#L76 | 19:59:58 |
@yusdacra:nixos.dev | hmm okay | 20:00:12 |
@timdeh:matrix.org | yusdacra: I have this building now to see if I can reproduce from a pristine master:
nix build "github:divnix/devos#nixosConfigurations.NixOS.config.system.build.toplevel" --no-write-lock-file --update-input nixos --update-input latest
| 20:00:29 |
@kraftnix:matrix.org | In reply to @ultranix:matrix.org
that's how i originally have it, but cant seem to get past this error:
error: The option `home-manager.users.tgunnoe.inputs' does not exist. Definition values:
- In `/nix/store/hv0kwva930njyc3q595ii5rd07xga2xc-source/users/tgunnoe': { }
tbh, i'm not really sure what's going wrong here, hard to say without seeing the code or a larger stacktrace | 20:00:35 |
@timdeh:matrix.org | * yusdacra: I have this building now to see if I can reproduce from a pristine main:
nix build "github:divnix/devos#nixosConfigurations.NixOS.config.system.build.toplevel" --no-write-lock-file --update-input nixos --update-input latest
| 20:00:38 |
David Arnold (blaggacao) | Alex Zero: help with the follows patch 🧑🚒 | 20:01:35 |
@timdeh:matrix.org | yep:
error: builder for '/nix/store/2hazs71krc2dkcc6qh6iq2cf46h7a4bm-nix-2.4pre20210802_47e96bb.drv' failed with exit code 1;
last 10 log lines:
> Hunk #6 succeeded at 496 (offset 8 lines).
> Hunk #7 succeeded at 512 (offset 8 lines).
> Hunk #8 succeeded at 531 (offset 8 lines).
> 1 out of 8 hunks FAILED -- saving rejects to file src/libexpr/flake/flake.cc.rej
> patching file src/libexpr/flake/flake.hh
> Hunk #2 succeeded at 124 (offset 4 lines).
> patching file src/libfetchers/fetchers.hh
> patching file src/libfetchers/path.cc
> patching file tests/flakes.sh
> Hunk #2 succeeded at 686 (offset -56 lines).
For full logs, run 'nix log /nix/store/2hazs71krc2dkcc6qh6iq2cf46h7a4bm-nix-2.4pre20210802_47e96bb.drv'.
| 20:03:37 |
@timdeh:matrix.org | so the PR just needs a rebase on master, and then we can pull the new patch | 20:04:06 |
@timdeh:matrix.org | I wonder why this isn't happening in my system then? the nix patch must have been very recently added to the system derivation. It used to be just in the shell | 20:04:55 |
ultranix | In reply to @kraftnix:matrix.org tbh, i'm not really sure what's going wrong here, hard to say without seeing the code or a larger stacktrace https://github.com/tgunnoe/nixos/blob/master/users/tgunnoe/default.nix#L31 https://github.com/tgunnoe/nixos/blob/master/flake.nix#L142-L145 the stack trace: https://gist.github.com/tgunnoe/5bc2a5310a5ef3a8b6cc2f032b69e43a | 20:09:24 |
ultranix | i find it hard to understand this stack trace too | 20:09:48 |
ultranix | because errors are from nixpkgs i believe | 20:10:24 |
@timdeh:matrix.org | it might be something simple. Try not using the with binding after imports. | 20:13:57 |
@timdeh:matrix.org | computation in imports reliably causes infinite recursion, since it needs to compute to import, but it needs to import to compute, and so on | 20:14:22 |
@timdeh:matrix.org | not sure if with would cause this, but it's worth a try. | 20:14:49 |
ultranix | ah, that's not it because i was just following the above example kraftnix provided. i dont usually have it. | 20:18:50 |
ultranix | i removed the whole home.users section from flake.nix because no one else seems to have it, and i dont understand what it's for | 20:19:36 |
ultranix | i removed nonessentials from the users/<user>/default.nix to see if it works https://gist.github.com/tgunnoe/5af21a82e3dca1da70ea8585edf91fb6 but no luck either. i'll try to rebase on master again but the latest i have isnt that old, maybe a few weeks | 20:22:09 |
@kraftnix:matrix.org | sorry, i got a call so can't look deeper for a bit, i recommend going super minimal and readding stuff till it works | 20:23:29 |
ultranix | np | 20:24:17 |
ultranix | by the way, nur is referenced as an output on master but there's no input for it | 20:25:27 |
@d4hines:matrix.org | In reply to @blaggacao:matrix.org this might be of your liking: https://github.com/divnix/digga/tree/main/examples/hmOnly How do I deploy the hmOnly example? I tried the previous command I was using and got an error about following a non-existent input:
nix run github:nix-community/home-manager --no-write-lock-file -- switch --flake .#d4hines
warning: not writing modified lock file of flake 'github:nix-community/home-manager':
* Added 'nixpkgs': 'github:NixOS/nixpkgs/f5a9dba0e9753699de8eba835c021cf7e7bd3375'
warning: Git tree '/home/d4hines/repos/beth' is dirty
error: input 'digga/deploy/naersk/nixpkgs' follows a non-existent input 'deploy/nixpkgs'
(use '--show-trace' to show detailed location information)
| 20:26:23 |
David Arnold (blaggacao) | That's a serious deadlock... We nead a serious hack (until that patch we are talking about lands) | 20:28:05 |
David Arnold (blaggacao) | * That's a serious deadlock... We need a serious hack (until that patch we are talking about lands) | 20:28:15 |
@d4hines:matrix.org | Let me link you to the exact flake.nix https://github.com/d4hines/beth/blob/master/flake.nix | 20:29:11 |
David Arnold (blaggacao) | Can you try nix develop github:divnix/digga --command nix flake update | 20:30:48 |