DevOS | 35 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 | ||
| I'm working on a DevOS-inspired setup with flakes + home-manager on Arch Linux. I'm using aconfmgr as a neat escape-hatch to manage config and packages in a fairly declarative manner. I'm having some issues as I'm trying to switch from bash to zsh though. When i do
I suspect the issue is that nixpkgs is providing one version of zsh while home-manager is providing another, but I don't see how that's possible or how to fix it. Here's my flake.lock file: https://github.com/d4hines/beth/blob/master/flake.lock Any ideas? | 17:57:06 | |
| so the actual conflicting file is just the completion | 17:58:44 | |
| I don't think the first version of nix contains my PR to fix zsh completions. Maybe you could try bumping to a more recent version of nixpkgs to get it? | 18:00:00 | |
| * I don't think the version of nix shown contains my PR to fix zsh completions. Maybe you could try bumping to a more recent version of nixpkgs to get it? | 18:00:15 | |
In reply to @timdeh:matrix.orgYea it would be nice. I just used a few of the tools a few days ago and some seem to be broken. The ones that use dtrace make sense since a lot of packages are not compiled with support. But I think there are quite a few that just need the right python packages available. | 18:01:12 | |
David Arnold (blaggacao): if you have time, might d4hines issue have something to do with the useGlobalPkgs or whatever it's called in home-manager? I believe you were the last person to make changes here, yes? | 18:03:07 | |
In reply to @princemachiavelli:matrix.orgmaybe I'll have to spend some time tracking down those packages then, and submitting a PR to include them by default when the module is enabled | 18:03:44 | |
In reply to @timdeh:matrix.orgSo I ran nix flake update, and it updated nixpkgs to the latest version https://github.com/NixOS/nixpkgs/commit/c87557a817a6bfbb0906de005c259c846c38f312; however I still get the same error | 18:09:10 | |
| okay, so home-manager might do something of it's own to enable completions. Now that I think about it, my fix wouldn't matter in this context since it's a nixos module. Maybe a similar fix needs to be made in the home-manager module upstream | 18:10:36 | |
There was a similar conflict in the NixOS module, because nix started shipping it's own zsh completion script, which conflicting with the one enabled by the module when including the nix-zsh-completions package | 18:11:04 | |
| I'll take a brief look at the hm module upstream and see if that's the case | 18:11:16 | |
Indeed, zsh.enableAutocompletion = false fixed the build. | 18:16:39 | |
| d4hines: you seem to have a nixos less hm config at hand, which has to be distinguished from the nixos-embedded one. For embedded ones, we do this for nixos-less we do this | 18:17:00 | |
| But the only bit that's probably useful is the naming and system spacing of portable homi | 18:17:38 | |
| * But the only bit that's probably useful is the naming and system spacing of portable home configs | 18:17:45 | |
| yeah it just pulls in nix-zsh-completions like the nixos module did | 18:17:45 | |
I did some trickery to just remove _nix from nix-zsh-completions so completions for the stable nix-* commands would still work | 18:18:26 | |
* But the only bit that's probably useful is the naming and system spacing of portable home configs ( self.homeConfigurationsPortable.<arch>.<profile>) | 18:18:42 | |
You could make a simple overlay for nix-zsh-completions that replicates what I did and then renable completions if you want | 18:18:48 | |
| I think I'll take a moment and just submit a PR to fix this in the same was as I did with the nixos module as well | 18:19:05 | |
In reply to @timdeh:matrix.orgWould I include the overlay in the flake overlays or in the home-manager property nix.overlays? | 18:20:12 | |
| The flake overlay I think, right? | 18:20:48 | |
| I believe these are forward to home-manager yes | 18:21:07 | |
| * I believe these are forwarded to home-manager yes | 18:21:12 | |
| 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 | |
| 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 | |
In reply to @timdeh:matrix.orgAs a beginner I like this a lot - I'm trying to keep my whole config in flake.nix if possible. | 18:23:56 | |
| that's fine, so ./users/<user> is obsolete? | 18:24:19 | |
| well no, because profiles are more a NixOS proper concern. So DevOS specific features -> flake.nix. NixOS configurations -> profiles | 18:25:36 | |
| * well no, because profiles are more a NixOS proper concern. So DevOS specific features -> flake.nix. NixOS=HM configurations -> profiles | 18:25:42 | |