!UUqahLbShAYkkrXmKs:matrix.org

DevOS

34 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
@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.org@d4hines:matrix.org
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.org@d4hines:matrix.org 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.org@d4hines:matrix.org
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:matrix.org@d4hines:matrix.orgThe flake overlay I think, right?18:20:48
@timdeh:matrix.org@timdeh:matrix.orgI believe these are forward to home-manager yes18:21:07
@timdeh:matrix.org@timdeh:matrix.org * I believe these are forwarded to home-manager yes18:21:12
@ultranix:matrix.orgultranixI 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-L14018:21:42
@timdeh:matrix.org@timdeh:matrix.orgYeah, so the idea was to move all user facing configuration for DevOS to the flake.nix for a single source of truth18:23:13
@d4hines:matrix.org@d4hines:matrix.org
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:matrix.orgultranixthat's fine, so ./users/<user> is obsolete?18:24:19
@timdeh:matrix.org@timdeh:matrix.orgwell no, because profiles are more a NixOS proper concern. So DevOS specific features -> flake.nix. NixOS configurations -> profiles18:25:36
@timdeh:matrix.org@timdeh:matrix.org * well no, because profiles are more a NixOS proper concern. So DevOS specific features -> flake.nix. NixOS=HM configurations -> profiles18:25:42
@timdeh:matrix.org@timdeh:matrix.org * well no, because profiles are more a NixOS proper concern. So DevOS specific features -> flake.nix. NixOS/HM configurations -> profiles18:25:53
@ultranix:matrix.orgultranixok, what's wrong with this synatax then? It doesn't apply the profiles18:26:51
@ultranix:matrix.orgultranixhttps://github.com/tgunnoe/nixos/blob/master/flake.nix#L150-L15118:26:54
@ultranix:matrix.orgultranix there a comment #digga.lib.importers.rakeLeaves ./users/hm; 18:28:09
@ultranix:matrix.orgultranixbut i dont understand how to use it18:28:26
@timdeh:matrix.org@timdeh:matrix.orgwell rakeLeaves is the function that gathers the profiles and makes them available to suites, so that would probably be the issue18:30:48

Show newer messages


Back to Room ListRoom Version: 6