!UUqahLbShAYkkrXmKs:matrix.org

DevOS

33 Members
Seeking help and geeking out together on https://github.com/divnix/devos & https://github.com/divnix/digga10 Servers

Load older messages


SenderMessageTime
12 Aug 2021
@ultranix:matrix.orgultranixyeah so you need to use rakeLeaves per user to import?18:31:31
@ultranix:matrix.orgultranix ah no, there's a use of rakeLeaves ./users under nixOS 18:32:27
@ultranix:matrix.orgultranixjust trying to figure out where to add homeManager suites, it makes sense suites are in flake.nix18:35:16
@timdeh:matrix.org@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@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:matrix.orgultranixah, good to know. thank you18:37:23
@timdeh:matrix.org@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:matrix.orgultranixso its an issue?18:43:47
@timdeh:matrix.org@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@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:matrix.org@d4hines:matrix.orgIf I use an overlay I don't need to do a version check, right?18:45:18
@timdeh:matrix.org@timdeh:matrix.orgno, 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 module18:45:53
@timdeh:matrix.org@timdeh:matrix.orgYou 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-L29318:46:42
@d4hines:matrix.org@d4hines:matrix.orgSo I've written the overlay, but how do I "apply" it? https://github.com/d4hines/beth/blob/master/flake.nix#L8-L1819:06:32
@d4hines:matrix.org@d4hines:matrix.orgI'm getting the same error, obviously because I'm not telling home-manger "use this new nixpkgs"19:07:08
@d4hines:matrix.org@d4hines:matrix.org * I'm getting the same error, obviously because I'm not telling home-manger "use this new nixpkgs" (there could be other mistakes too thought 😅)19:07:33
@d4hines:matrix.org@d4hines:matrix.org * I'm getting the same error, obviously because I'm not telling home-manger "use this new nixpkgs" (there could be other mistakes too though 😅)19:07:39
@timdeh:matrix.org@timdeh:matrix.org so I think the overlay should go in channels.<your-channel>.overlays 19:08:16
@timdeh:matrix.org@timdeh:matrix.orgbased on whichever channel gets forward to home-manager19:08:28
@d4hines:matrix.org@d4hines:matrix.org
In reply to @timdeh:matrix.org
so I think the overlay should go in channels.<your-channel>.overlays
Would you happen to have a link to docs describing this?
19:08:53
@d4hines:matrix.org@d4hines:matrix.orgI have trouble finding nix flake docs.19:09:09
@timdeh:matrix.org@timdeh:matrix.orgthis is a digga feature, so it should be documented here: digga.divnix.com19:12:21
@timdeh:matrix.org@timdeh:matrix.orgoh wait, it looks like you are not using mkFlake19:12:50
@timdeh:matrix.org@timdeh:matrix.orgso maybe not19:12:52
@d4hines:matrix.org@d4hines:matrix.orgRight. I want to do this without libraries first, then refactor as necessary.19:13:08
@d4hines:matrix.org@d4hines:matrix.orgStill trying to wrap my head around nix, flakes, etc.19:13:20
@timdeh:matrix.org@timdeh:matrix.orgso by pulling pkgs from the module are here: https://github.com/nrdxp/nixpkgs/blob/6dbf8c04097c8961bb1cb9cb319fee42eb19ab7a/nixos/modules/programs/zsh/zsh.nix#L288-L293 You are overiding the pkgs you declared in your let binding earlier19:13:42
@timdeh:matrix.org@timdeh:matrix.org * so by pulling pkgs from the module args here: https://github.com/nrdxp/nixpkgs/blob/6dbf8c04097c8961bb1cb9cb319fee42eb19ab7a/nixos/modules/programs/zsh/zsh.nix#L288-L293 You are overiding the pkgs you declared in your let binding earlier19:13:51
@timdeh:matrix.org@timdeh:matrix.orgdoes home-manager have a way to override the global pkgs? I doesn't look like it from the docs. In that case, it looks like you'd wanna throw your overlay in nixpkgs.overlays19:16:17
@d4hines:matrix.org@d4hines:matrix.org
In reply to @timdeh:matrix.org
does home-manager have a way to override the global pkgs? I doesn't look like it from the docs. In that case, it looks like you'd wanna throw your overlay in nixpkgs.overlays
There's an attribute called overlay in the flake schema. I don't put it in there?
19:18:29

Show newer messages


Back to Room ListRoom Version: 6