12 Aug 2021 |
d4hines | The flake overlay I think, right? | 18:20:48 |
@timdeh:matrix.org | I believe these are forward to home-manager yes | 18:21:07 |
@timdeh:matrix.org | * I believe these are forwarded to home-manager yes | 18:21:12 |
ultranix | I dont understand how to add user suites to user accounts, looks like it was switched to flake.nix since i last updated: https://github.com/divnix/devos/blob/main/flake.nix#L137-L140 | 18:21:42 |
@timdeh:matrix.org | Yeah, so the idea was to move all user facing configuration for DevOS to the flake.nix for a single source of truth | 18:23:13 |
d4hines | In reply to @timdeh:matrix.org Yeah, so the idea was to move all user facing configuration for DevOS to the flake.nix for a single source of truth As a beginner I like this a lot - I'm trying to keep my whole config in flake.nix if possible. | 18:23:56 |
ultranix | that's fine, so ./users/<user> is obsolete? | 18:24:19 |
@timdeh:matrix.org | well no, because profiles are more a NixOS proper concern. So DevOS specific features -> flake.nix. NixOS configurations -> profiles | 18:25:36 |
@timdeh:matrix.org | * well no, because profiles are more a NixOS proper concern. So DevOS specific features -> flake.nix. NixOS=HM configurations -> profiles | 18:25:42 |
@timdeh:matrix.org | * well no, because profiles are more a NixOS proper concern. So DevOS specific features -> flake.nix. NixOS/HM configurations -> profiles | 18:25:53 |
ultranix | ok, what's wrong with this synatax then? It doesn't apply the profiles | 18:26:51 |
ultranix | https://github.com/tgunnoe/nixos/blob/master/flake.nix#L150-L151 | 18:26:54 |
ultranix | there a comment #digga.lib.importers.rakeLeaves ./users/hm; | 18:28:09 |
ultranix | but i dont understand how to use it | 18:28:26 |
@timdeh:matrix.org | well rakeLeaves is the function that gathers the profiles and makes them available to suites, so that would probably be the issue | 18:30:48 |
ultranix | yeah so you need to use rakeLeaves per user to import? | 18:31:31 |
ultranix | ah no, there's a use of rakeLeaves ./users under nixOS | 18:32:27 |
ultranix | just trying to figure out where to add homeManager suites, it makes sense suites are in flake.nix | 18:35:16 |
@timdeh:matrix.org | yeah, it's good to know how rakeLeaves looks for files. It recurses directories looking for *.nix files and includes any it finds as a profile. In the special case where a file is named default.nix, the recursion stops on that branch and only the default.nix file get's imported in that directory | 18:36:56 |
@timdeh:matrix.org | * yeah, it's also good to know how rakeLeaves looks for files. It recurses directories looking for *.nix files and includes any it finds as a profile. In the special case where a file is named default.nix, the recursion stops on that branch and only the default.nix file get's imported in that directory | 18:37:03 |
ultranix | ah, good to know. thank you | 18:37:23 |
@timdeh:matrix.org | hmm, it seems fixing the home-manager module is a bit more complex since it doesn't have a nix.package equivalent 🤔 | 18:40:53 |
ultranix | so its an issue? | 18:43:47 |
@timdeh:matrix.org | sorry, this is in response to d4hines issue. I'm trying to recreate this nixpkgs PR in home-manager, but I need access to the currently install nix package to inspect it's version | 18:44:42 |
@timdeh:matrix.org | * sorry, this is in response to d4hines issue. I'm trying to recreate this nixpkgs PR in home-manager, but I need access to the currently installed nix package to inspect it's version | 18:44:59 |
d4hines | If I use an overlay I don't need to do a version check, right? | 18:45:18 |
@timdeh:matrix.org | no, you would just remove _nix from nix-zsh-completions. I just need the version in the more general case, so that completions work for users of both stable and unstable when they pull the module | 18:45:53 |
@timdeh:matrix.org | You would just need to copy this override to your overlay essentially:
https://github.com/nrdxp/nixpkgs/blob/6dbf8c04097c8961bb1cb9cb319fee42eb19ab7a/nixos/modules/programs/zsh/zsh.nix#L288-L293 | 18:46:42 |
d4hines | So I've written the overlay, but how do I "apply" it? https://github.com/d4hines/beth/blob/master/flake.nix#L8-L18 | 19:06:32 |
d4hines | I'm getting the same error, obviously because I'm not telling home-manger "use this new nixpkgs" | 19:07:08 |