Sender | Message | Time |
---|---|---|
12 Aug 2021 | ||
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 | |
In reply to @timdeh:matrix.orgit depends, on recent versions you consume that module via overlays: https://github.com/divnix/devos/blob/5b89e53e7a39c603bed327023c953d0b30433ec2/flake.nix#L76 | 19:51:36 | |
In reply to @d4hines:matrix.orgMaybe this is what I'm looking for: https://github.com/divnix/digga/tree/main/examples/hmOnly | 19:51:51 | |
oh wait, nevermind | 19:52:02 | |
i got the error from running nixos-rebuild boot | 19:52:15 | |
In reply to @d4hines:matrix.orgthis might be of your liking: https://github.com/divnix/digga/tree/main/examples/hmOnly | 19:52:17 | |
😅 | 19:52:20 | |
David Arnold (blaggacao): how would I apply the overlay in the hmOnly example? | 19:53:49 | |
oh wow. I wasn't aware we had any patches in the system Nix | 19:53:50 | |
In reply to @d4hines:matrix.orgto the default channel, which is the nixos one | 19:54:21 | |
https://digga.divnix.com/api-reference-channels.html#channelsnameoverlays | 19:54:47 | |
(see also the gotcha at the top) | 19:55:04 | |
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 | |
Redacted or Malformed Event | 19:56:47 | |
In reply to @timdeh:matrix.orgI merged the main branch just some 30 minutes ago | 19:57:22 | |
In reply to @ultranix:matrix.org that's how i originally have it, but cant seem to get past this error:
| 19:57:33 | |
In reply to @yusdacra:nixos.devthis is the (optional!) overlay: https://github.com/divnix/digga/blob/main/overlays/nix-patched.nix | 19:58:58 |