!UUqahLbShAYkkrXmKs:matrix.org

DevOS

37 Members
Seeking help and geeking out together on https://github.com/divnix/devos & https://github.com/divnix/digga10 Servers

Load older messages


SenderMessageTime
12 Aug 2021
@d4hines:matrix.orgd4hines
In reply to @d4hines:matrix.org
Is there a minimal example you can link me to? More minimal than devos 😅
Maybe this is what I'm looking for: https://github.com/divnix/digga/tree/main/examples/hmOnly
19:51:51
@yusdacra:nixos.devyusdacraoh wait, nevermind19:52:02
@yusdacra:nixos.devyusdacra i got the error from running nixos-rebuild boot 19:52:15
@blaggacao:matrix.orgDavid Arnold (blaggacao)
In reply to @d4hines:matrix.org
Is there a minimal example you can link me to? More minimal than devos 😅
this might be of your liking: https://github.com/divnix/digga/tree/main/examples/hmOnly
19:52:17
@yusdacra:nixos.devyusdacra😅19:52:20
@d4hines:matrix.orgd4hines David Arnold (blaggacao): how would I apply the overlay in the hmOnly example? 19:53:49
@timdeh:matrix.org@timdeh:matrix.orgoh wow. I wasn't aware we had any patches in the system Nix19:53:50
@blaggacao:matrix.orgDavid Arnold (blaggacao)
In reply to @d4hines:matrix.org
David Arnold (blaggacao): how would I apply the overlay in the hmOnly example?
to the default channel, which is the nixos one
19:54:21
@blaggacao:matrix.orgDavid Arnold (blaggacao)https://digga.divnix.com/api-reference-channels.html#channelsnameoverlays19:54:47
@blaggacao:matrix.orgDavid Arnold (blaggacao)(see also the gotcha at the top)19:55:04
@timdeh:matrix.org@timdeh:matrix.org yusdacra: how long has it been since you've updated? A long time ago we used to have a patch to enable flakes by default but we decided to remove it. I've rebased on develop fairly recently and, as I said, I updated Nix just yesterday and am not getting this error 19:56:26
@ultranix:matrix.orgultranixRedacted or Malformed Event19:56:47
@yusdacra:nixos.devyusdacra
In reply to @timdeh:matrix.org
yusdacra: how long has it been since you've updated? A long time ago we used to have a patch to enable flakes by default but we decided to remove it. I've rebased on develop fairly recently and, as I said, I updated Nix just yesterday and am not getting this error
I merged the main branch just some 30 minutes ago
19:57:22
@ultranix:matrix.orgultranix
In reply to @ultranix:matrix.org
so do you know what these lines are for then? https://github.com/divnix/devos/blob/main/flake.nix#L137-L140

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': { }
19:57:33
@blaggacao:matrix.orgDavid Arnold (blaggacao)
In reply to @yusdacra:nixos.dev
I merged the main branch just some 30 minutes ago
this is the (optional!) overlay: https://github.com/divnix/digga/blob/main/overlays/nix-patched.nix
19:58:58
@yusdacra:nixos.devyusdacrahmm wait why do i not have that file19:59:31
@blaggacao:matrix.orgDavid Arnold (blaggacao)you can remove it... and that should work for nor19:59:30
@blaggacao:matrix.orgDavid Arnold (blaggacao) * you can remove it... and that should work for now19:59:38
@yusdacra:nixos.devyusdacraoh its on digga19:59:45
@blaggacao:matrix.orgDavid Arnold (blaggacao)maybe yes: https://github.com/divnix/devos/blob/5b89e53e7a39c603bed327023c953d0b30433ec2/flake.nix#L7619:59:58
@yusdacra:nixos.devyusdacrahmm okay20:00:12
@timdeh:matrix.org@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@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@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
@blaggacao:matrix.orgDavid Arnold (blaggacao) Alex Zero: help with the follows patch 🧑‍🚒 20:01:35
@timdeh:matrix.org@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@timdeh:matrix.orgso the PR just needs a rebase on master, and then we can pull the new patch20:04:06
@timdeh:matrix.org@timdeh:matrix.orgI 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 shell20:04:55
@ultranix:matrix.orgultranix
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:matrix.orgultranixi find it hard to understand this stack trace too20:09:48

Show newer messages


Back to Room ListRoom Version: 6