| 12 Aug 2021 |
@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 |
d4hines | 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 | oh wait, nevermind | 19:52:02 |
yusdacra | i got the error from running nixos-rebuild boot | 19:52:15 |
David 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 | 😅 | 19:52:20 |
d4hines | David Arnold (blaggacao): how would I apply the overlay in the hmOnly example? | 19:53:49 |
@timdeh:matrix.org | oh wow. I wasn't aware we had any patches in the system Nix | 19:53:50 |
David 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 |
David Arnold (blaggacao) | https://digga.divnix.com/api-reference-channels.html#channelsnameoverlays | 19:54:47 |
David Arnold (blaggacao) | (see also the gotcha at the top) | 19:55:04 |
@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 | Redacted or Malformed Event | 19:56:47 |
yusdacra | 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 | 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 |
David 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 | hmm wait why do i not have that file | 19:59:31 |
David Arnold (blaggacao) | you can remove it... and that should work for nor | 19:59:30 |
David Arnold (blaggacao) | * you can remove it... and that should work for now | 19:59:38 |
yusdacra | oh its on digga | 19:59:45 |
David Arnold (blaggacao) | maybe yes: https://github.com/divnix/devos/blob/5b89e53e7a39c603bed327023c953d0b30433ec2/flake.nix#L76 | 19:59:58 |