DevOS | 36 Members | |
| Seeking help and geeking out together on https://github.com/divnix/devos & https://github.com/divnix/digga | 10 Servers |
| Sender | Message | Time |
|---|---|---|
| 12 Aug 2021 | ||
| Oh, it's an attribute of the output object | 19:38:08 | |
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 | |
| 19:40:08 | |
outputs being the meat of it | 19:40:11 | |
| i'm getting this with latest nixpkgs-unstable | 19:40:17 | |
| i guess the patches are out of date now | 19:40:24 | |
| I think the patches are only for the nix in the shell though right David Arnold (blaggacao) | 19:41:01 | |
| 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 | |
| hmm | 19:41:49 | |
| i think i can build the system fine | 19:42:19 | |
| its just the devshell | 19:42:23 | |
In reply to @d4hines:matrix.orgI empathically understand the impetus. However, if you ask me, it might be easier the other way round.. 🙂 | 19:44:06 | |
In reply to @ultranix:matrix.org if you are using master, you should have some suites under
where the above pulls in a suite I have called | 19:44:36 | |
In reply to @yusdacra:nixos.devyeah, 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 | |
In reply to @ultranix:matrix.orgyou might also have a complementary look at: https://github.com/divnix/digga/tree/main/examples -- they are very minimal. | 19:46:35 | |
| i was not aware digga had that section, nice | 19:48:06 | |
| 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 | |
In reply to @d4hines:matrix.orgflakes 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 | |
In reply to @ultranix:matrix.orgyeah 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 | |
In reply to @blaggacao:matrix.orgyes 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 | |
In reply to @yusdacra:nixos.devIs that the follows patch? -- let me know.. | 19:49:40 | |
| 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 | |
| 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 | |
In reply to @kraftnix:matrix.orgso do you know what these lines are for then? https://github.com/divnix/devos/blob/main/flake.nix#L137-L140 | 19:50:09 | |
In reply to @blaggacao:matrix.orgYeah it should be the follows patch | 19:50:17 | |
In reply to @blaggacao:matrix.orgI 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 | |
In reply to @blaggacao:matrix.orgIs there a minimal example you can link me to? | 19:50:27 | |
In reply to @blaggacao:matrix.org* Is there a minimal example you can link me to? More minimal than devos 😅 | 19:50:40 | |
In reply to @blaggacao:matrix.org* 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 | |
In reply to @ultranix:matrix.orgi 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 | |