| 12 Aug 2021 |
@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 | 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 | 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 |
David Arnold (blaggacao) | (this gives you the patched version that is needed for updates only) | 20:31:18 |
David Arnold (blaggacao) | once the lockfile is created, all commands work except updates. | 20:32:08 |
d4hines | So what is the process then to do the switch? nix shell ...? | 20:33:30 |
d4hines | (The flake update command worked btw!) | 20:34:13 |
David Arnold (blaggacao) | well, with that, you can enter the devshell which has some breadcrumbs... | 20:54:33 |
David Arnold (blaggacao) | nix develop | 20:54:43 |
ultranix | what is bud? | 20:55:27 |
David Arnold (blaggacao) | bud is your buddy: https://github.com/divnix/bud | 20:55:51 |
David Arnold (blaggacao) | it can be used to create your own cli tool | 20:56:13 |
David Arnold (blaggacao) | and there is a home sucommand which might (eventually) | 20:56:46 |
David Arnold (blaggacao) | * and there is a home sucommand which might (eventually) work: https://github.com/divnix/bud/blob/main/scripts/hm-home.bash | 20:57:01 |
David Arnold (blaggacao) | (I haven't come around to test it yet properly) | 20:57:40 |
David Arnold (blaggacao) | * and there is a home sucommand which might (eventually) work: https://github.com/divnix/bud/blob/main/scripts/hm-home.bash d4hines | 20:57:55 |
David Arnold (blaggacao) | here is an example of how to amend bud: https://github.com/divnix/devos/tree/main/bud | 20:58:36 |
@kraftnix:matrix.org | In reply to @ultranix:matrix.org by the way, nur is referenced as an output on master but there's no input for it maybe something in nur, or elsewhere was broken, I cloned your repo and couldn't nix shell until I just ran nix flake update and now it's at least pulling down stuff from cache, why don't you give that a go? | 20:58:45 |
David Arnold (blaggacao) | (bud can use any writer, not only bash. so nothing inhibits using rust or python etc) | 20:59:34 |
@kraftnix:matrix.org | i've been meaning to write a bud wrapper for agenix secrets integration, I have a mini bash script for it already | 21:01:08 |
@kraftnix:matrix.org | but then you added easy to run integrated qemu-vm host testing and now i've lost 3 days to writing tests for all the things! | 21:01:36 |
@kraftnix:matrix.org | also ultranix doing the full update might have fixed an issue for now but I'm running into the issue the others were discussing before (the nix patch issue) | 21:03:48 |
@kraftnix:matrix.org | In reply to @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'.
this issue specficially | 21:04:34 |
ultranix | kraftnix: just nix shell? | 21:05:57 |
ultranix | that doesnt seem to work for me anywhere, with a fresh clone of devos | 21:06:12 |