!UUqahLbShAYkkrXmKs:matrix.org

DevOS

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

Load older messages


SenderMessageTime
10 Aug 2021
@timdeh:matrix.org@timdeh:matrix.org * or you could just define the container as a profile itself and just put your system config for it after my-cool-container.config = 23:49:00
11 Aug 2021
@blaggacao:matrix.orgDavid Arnold (blaggacao)You can also use this pattern to creat your own 'variant': https://github.com/divnix/digga/blob/main/modules/bootstrap-iso.nix14:24:56
@blaggacao:matrix.orgDavid Arnold (blaggacao) * princemachiavelli: You can also use this pattern to creat your own 'variant': https://github.com/divnix/digga/blob/main/modules/bootstrap-iso.nix 14:25:08
@blaggacao:matrix.orgDavid Arnold (blaggacao)or best check if this already fits your needs: https://github.com/nix-community/nixos-generators/blob/master/formats/lxc.nix14:26:04
@blaggacao:matrix.orgDavid Arnold (blaggacao) (all nixos-generators come included: bud build HOST lxc) 14:26:41
@blaggacao:matrix.orgDavid Arnold (blaggacao)And if that doesn't work, I think the maintainer will be very happy about any contribution there.14:27:46
12 Aug 2021
@timdeh:matrix.org@timdeh:matrix.org Small little though, but does anyone thing 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 17:54:44
@timdeh:matrix.org@timdeh:matrix.org * Small little thought, but does anyone thing 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 17:54:50
@timdeh:matrix.org@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 17:54:56
@d4hines:matrix.orgd4hines

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 programs.zsh.enable, I get an error about packages being in conflict:

...
installing 'home-manager-path'
building '/nix/store/4fb72177cs4brdrq6k7h6i9f3cvfyi17-user-environment.drv'...
error: packages '/nix/store/6an3bk6p01zya46s6wxn9rga13fj64fn-nix-2.4pre20210604_8e6ee1b/share/zsh/site-functions/_nix' and '/nix/store/5gpbxv938yyq372rxvjmip91nrxw0k7a-home-manager-path/share/zsh/site-functions/_nix' have the same priority 5; use 'nix-env --set-flag priority NUMBER INSTALLED_PKGNAME' to change the priority of one of the conflicting packages (0 being the highest priority)
error: builder for '/nix/store/4fb72177cs4brdrq6k7h6i9f3cvfyi17-user-environment.drv' failed with exit code 1

Oops, nix-env failed to install your new Home Manager profile!

Perhaps there is a conflict with a package that was installed using
'nix-env -i'? Try running

    nix-env -q

and if there is a conflicting package you can remove it with

    nix-env -e {package name}

Then try activating your Home Manager configuration again.

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
@timdeh:matrix.org@timdeh:matrix.orgso the actual conflicting file is just the completion17:58:44
@timdeh:matrix.org@timdeh:matrix.org 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
@timdeh:matrix.org@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:matrix.orgprincemachiavelli
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@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@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:matrix.orgd4hines
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@timdeh:matrix.orgokay, 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 upstream18:10:36
@timdeh:matrix.org@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@timdeh:matrix.orgI'll take a brief look at the hm module upstream and see if that's the case18:11:16
@d4hines:matrix.orgd4hines Indeed, zsh.enableAutocompletion = false fixed the build. 18:16:39
@blaggacao:matrix.orgDavid 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
@blaggacao:matrix.orgDavid Arnold (blaggacao)But the only bit that's probably useful is the naming and system spacing of portable homi 18:17:38
@blaggacao:matrix.orgDavid Arnold (blaggacao) * But the only bit that's probably useful is the naming and system spacing of portable home configs18:17:45
@timdeh:matrix.org@timdeh:matrix.orgyeah it just pulls in nix-zsh-completions like the nixos module did18:17:45
@timdeh:matrix.org@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
@blaggacao:matrix.orgDavid 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@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@timdeh:matrix.orgI 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 well18:19:05
@d4hines:matrix.orgd4hines
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

There are no newer messages yet.


Back to Room ListRoom Version: 6