12 Aug 2021 |
@timdeh:matrix.org | oh yes, I didn't notice that. The top-level attributes in a flake.nix should only be description inputs outputs and nixConfig . | 19:39:52 |
yusdacra | 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'.
| 19:40:08 |
@timdeh:matrix.org | outputs being the meat of it | 19:40:11 |
yusdacra | i'm getting this with latest nixpkgs-unstable | 19:40:17 |
yusdacra | i guess the patches are out of date now | 19:40:24 |
@timdeh:matrix.org | I think the patches are only for the nix in the shell though right David Arnold (blaggacao) | 19:41:01 |
@timdeh:matrix.org | I just updated nix to master since I recently merged a version bump and it's working on my system. Even with nix-dram applied | 19:41:34 |
yusdacra | hmm | 19:41:49 |
yusdacra | i think i can build the system fine | 19:42:19 |
yusdacra | its just the devshell | 19:42:23 |
David Arnold (blaggacao) | In reply to @d4hines:matrix.org Right. I want to do this without libraries first, then refactor as necessary. I empathically understand the impetus. However, if you ask me, it might be easier the other way round.. 🙂 | 19:44:06 |
@kraftnix:matrix.org | In reply to @ultranix:matrix.org I still don't understand how to add profiles/suites to a home.users.<user> in flake.nix, if you are using master, you should have some suites under home.importables.suites , then you reference these in a user under ./users/kraftnix/default.nix or ./users/kraftnix.nix and do something like
home-manager.users.kraftnix = { suites, ... }: {
imports = with suites; base ++ tokyo-night;
...
};
where the above pulls in a suite I have called base and tokyo-night , at least that's how I use user profiles
| 19:44:36 |
@timdeh:matrix.org | In reply to @yusdacra:nixos.dev i think i can build the system fine yeah, it's just used in the shell because of the follows bug. Hopefully they merge that PR soonish so we can remove the patches all together | 19:45:51 |
David Arnold (blaggacao) | In reply to @ultranix:matrix.org I still don't understand how to add profiles/suites to a home.users.<user> in flake.nix, you might also have a complementary look at: https://github.com/divnix/digga/tree/main/examples -- they are very minimal. | 19:46:35 |
@kraftnix:matrix.org | i was not aware digga had that section, nice | 19:48:06 |
ultranix | thanks. some of the examples had removed home-manager.users.<user> from the users/<user>/default.nix and replaced it with just the username. so its confusing | 19:48:07 |
David Arnold (blaggacao) | In reply to @d4hines:matrix.org
The wiki lists overlay as a valid attribute of flakes; however, I'm getting this error:
error: flake 'git+file:///home/d4hines/repos/beth' has an unsupported attribute 'overlay', at /nix/store/9cdyiyw5333969j5rhyrc3112kl2wkcv-source/flake.nix:4:3
flakes only have a weak schema. some attrs are better known than others. any attribute is fine. none has magic semantics beyond a bit of cli ux sugar | 19:48:25 |
@kraftnix:matrix.org | In reply to @ultranix:matrix.org thanks. some of the examples had removed home-manager.users.<user> from the users/<user>/default.nix and replaced it with just the username. so its confusing yeah first I was looking in digga/devos for an example like how I manage my own users, and found the default root/nixos users don't do it like I do | 19:48:52 |
@timdeh:matrix.org | In reply to @blaggacao:matrix.org flakes only have a weak schema. some attrs are better known than others. any attribute is fine. none has magic semantics beyond a bit of cli ux sugar yes but this is only true for the outputs schema. An unexpected attribute in the top-level will result in an evaluation error | 19:49:21 |
David Arnold (blaggacao) | In reply to @yusdacra:nixos.dev
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'.
Is that the follows patch? -- let me know.. | 19:49:40 |
@kraftnix:matrix.org | i prefer managing users in their own files rather than within the flake itself, which seems to be the opposite of the examples now, however digga/devos doesn't care so :) each to their own | 19:49:48 |
d4hines | I'm still hitting the same error. Any idea what i'm doing wrong? https://github.com/d4hines/beth/blob/master/flake.nix#L10-L17 | 19:50:07 |
ultranix | In reply to @kraftnix:matrix.org
if you are using master, you should have some suites under home.importables.suites , then you reference these in a user under ./users/kraftnix/default.nix or ./users/kraftnix.nix and do something like
home-manager.users.kraftnix = { suites, ... }: {
imports = with suites; base ++ tokyo-night;
...
};
where the above pulls in a suite I have called base and tokyo-night , at least that's how I use user profiles
so do you know what these lines are for then? https://github.com/divnix/devos/blob/main/flake.nix#L137-L140 | 19:50:09 |
yusdacra | In reply to @blaggacao:matrix.org Is that the follows patch? -- let me know.. Yeah it should be the follows patch | 19:50:17 |
@timdeh:matrix.org | In reply to @blaggacao:matrix.org Is that the follows patch? -- let me know.. I believe it is, I just reviewed the PR and it now has conflicts. Ideally we need someone to rebase the PR and then pull the fresh patch. | 19:50:26 |
d4hines | In reply to @blaggacao:matrix.org I empathically understand the impetus. However, if you ask me, it might be easier the other way round.. 🙂 Is there a minimal example you can link me to? | 19:50:27 |
d4hines | In reply to @blaggacao:matrix.org I empathically understand the impetus. However, if you ask me, it might be easier the other way round.. 🙂 * Is there a minimal example you can link me to? More minimal than devos 😅 | 19:50:40 |
@timdeh:matrix.org | In reply to @blaggacao:matrix.org Is that the follows patch? -- let me know.. * I believe it is, I just reviewed the PR and it now has conflicts. Ideally we need someone to rebase the PR and then pull the fresh patch. (or better yet, merge it 😓) | 19:51:11 |
@kraftnix:matrix.org | 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 i believe that is if you want to manage your users within flake.nix. i do not use this myself, someone else may be able to provide better insight, it might have something to do with portable home-manager as well | 19:51:14 |
David Arnold (blaggacao) | In reply to @timdeh:matrix.org yeah, it's just used in the shell because of the follows bug. Hopefully they merge that PR soonish so we can remove the patches all together it depends, on recent versions you consume that module via overlays: https://github.com/divnix/devos/blob/5b89e53e7a39c603bed327023c953d0b30433ec2/flake.nix#L76 | 19:51:36 |