| 12 Aug 2021 |
@timdeh:matrix.org | * 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 |
princemachiavelli | In reply to @timdeh:matrix.org Small little thought, but does anyone think that programs.bcc.enable might be good for the core profile? I'm starting to dive into these tracing tools after ignoring them for some years now, and I have to say, they are quite impressive Yea 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 |
@timdeh:matrix.org | 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 |
@timdeh:matrix.org | In reply to @princemachiavelli:matrix.org Yea 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. maybe 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 |
d4hines | In reply to @timdeh:matrix.org 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? So 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 |
@timdeh:matrix.org | 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 |
@timdeh:matrix.org | 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 |
@timdeh:matrix.org | I'll take a brief look at the hm module upstream and see if that's the case | 18:11:16 |
d4hines | Indeed, zsh.enableAutocompletion = false fixed the build. | 18:16:39 |
David Arnold (blaggacao) | 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 |
David Arnold (blaggacao) | But the only bit that's probably useful is the naming and system spacing of portable homi | 18:17:38 |
David Arnold (blaggacao) | * But the only bit that's probably useful is the naming and system spacing of portable home configs | 18:17:45 |
@timdeh:matrix.org | yeah it just pulls in nix-zsh-completions like the nixos module did | 18:17:45 |
@timdeh:matrix.org | 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 |
David Arnold (blaggacao) | * 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 |
@timdeh:matrix.org | 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 |
@timdeh:matrix.org | 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 |
d4hines | In reply to @timdeh:matrix.org You could make a simple overlay for nix-zsh-completions that replicates what I did and then renable completions if you want Would I include the overlay in the flake overlays or in the home-manager property nix.overlays? | 18:20:12 |
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 |