!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
9 Dec 2021
@blaggacao:matrix.orgDavid Arnold (blaggacao)* Btw, I kicked `bud` out of my own env, since I really like the uniformity that `deploy-rs` provides for the current use cases of bud.14:43:48
@kraftnix:matrix.org@kraftnix:matrix.org
In reply to @blaggacao:matrix.org

At work I learned that the issues with follows inputs are not completely gone and that the only really effective way to deal with it (for now) is to reduce & push to the leave:

  • reduce -> don't bother about non-nixpkgs, since they are usually libs, are small and don't have huge deps themselves
  • push to the leaf -> make it a responsability of the end user flake. (Almost) all follows issues that I still hace seen with recent versions could be resolve when the follows statements are used at the leaf.
ugh, i was hoping nix#4641 would fix the follows issues :(
15:30:03
@kraftnix:matrix.org@kraftnix:matrix.org
In reply to @blaggacao:matrix.org
At this point, my current best advice to reduce closure size is to fare with a balanced approch: deduplicate the core blobs like nixpkgs and make sure you don't have largely duplicated dep trees, but don't care too much about leaf packages with only a few runtime deps & don't care at all about pure nix libraries.
yeah i think i've also come to the same opinion, I really did like compressing down the lockfile as it made it easier to read and track dependency updates, and reason about what sources + revisions I am using, at the potential cost of incompatibility by forcing a lib to be a different revision. But it probably is better to only force nixpkgs and allow multiple lib revisions even if it makes the lockfile very large and harder to read, just for my own sanity's sake
15:32:18
@kraftnix:matrix.org@kraftnix:matrix.org
In reply to @blaggacao:matrix.org
Btw, I kicked bud out of my own env, since I really like the uniformity that deploy-rs provides for the current use cases of bud.
interesting, I mostly use bud purely for the shorthand of bud repl, otherwise I use nix + deploy, given that bud also started pulling down poetry2nix via beatysh and I had wrangle the follows back into place, I have been considering dropping it
15:34:58
@blaggacao:matrix.orgDavid Arnold (blaggacao) Yeah, the repl is a good workflow aide, but since newer nix has :lf . part of it is also superfluous. I kind of fell that a zoxide-based workfloe that quickly drops you into the flake repo on any machine is just as handy & also leaves you in the fs-context that you'll be operating on. 15:45:51
@blaggacao:matrix.orgDavid Arnold (blaggacao)* Yeah, the repl is a good workflow aide, but since newer nix has `:lf .` part of it is also superfluous. I kind of feel that a `zoxide`-based workfloe that quickly drops you into the flake repo on any machine is just as handy & also leaves you in the fs-context that you'll be operating on.15:46:07
@blaggacao:matrix.orgDavid Arnold (blaggacao)* Yeah, the repl is a good workflow aide, but since newer nix has `:lf .` part of it is also superfluous. I kind of feel that a `zoxide`-based workflow that quickly drops you into the flake repo on any machine is just as handy & also leaves you in the fs-context that you'll be operating on.15:46:15
@blaggacao:matrix.orgDavid Arnold (blaggacao)I wanted to brush of some barbed edges of the deploy-rs / home-manager workflow.15:47:17
@blaggacao:matrix.orgDavid Arnold (blaggacao) Although it works with a small patch on my end, we really need to make nix profile respect meta.priority. since co-existence of nix & nix-zsh-completions depend on it. 15:48:25
@blaggacao:matrix.orgDavid Arnold (blaggacao)Ah, and there is the agenix hm-module, that needs finishing off.15:50:47
10 Dec 2021
@kraftnix:matrix.org@kraftnix:matrix.org
In reply to @blaggacao:matrix.org
Yeah, the repl is a good workflow aide, but since newer nix has :lf . part of it is also superfluous. I kind of feel that a zoxide-based workflow that quickly drops you into the flake repo on any machine is just as handy & also leaves you in the fs-context that you'll be operating on.
oh wow, I was not aware of :lf ., that is so much more convenient than Flake = builtins.getFlake "full/path/to/flake, is there a way to have :lf add the flake to a specific scope (to somewhat emulate Flake = builtins.getFlake ... ?
14:37:41
@kraftnix:matrix.org@kraftnix:matrix.org
In reply to @blaggacao:matrix.org
Although it works with a small patch on my end, we really need to make nix profile respect meta.priority. since co-existence of nix & nix-zsh-completions depend on it.
are there some issues with nix and nix-zsh-completions? back around september there were some changes and since then i've had nix work pretty perfectly in zsh with autocompletions.
14:39:43
@blaggacao:matrix.orgDavid Arnold (blaggacao)
In reply to @kraftnix:matrix.org
oh wow, I was not aware of :lf ., that is so much more convenient than Flake = builtins.getFlake "full/path/to/flake, is there a way to have :lf add the flake to a specific scope (to somewhat emulate Flake = builtins.getFlake ... ?
Hm, havn't tried.
15:22:31
@blaggacao:matrix.orgDavid Arnold (blaggacao)
In reply to @kraftnix:matrix.org
are there some issues with nix and nix-zsh-completions? back around september there were some changes and since then i've had nix work pretty perfectly in zsh with autocompletions.
Yes, the previous fix has been reverted in favor of simply lowering the priority of nix-zsh-completions. However, nix profile install as of yet disregards meta.priority. there is a fixme in the nix code for that (profile.cc).
15:24:08
11 Dec 2021
@pachumicchu:myrdd.infoPacman99

|reduce -> don't bother about non-nixpkgs, since they are usually libs, are small and don't have huge deps themselves
push to the leaf -> make it a responsability of the end user flake. (Almost) all follows issues that I still hace seen with recent versions could be resolve when the follows statements are used at the leaf.

On this, I've always favored reduce. I think cargo and npm style package managers follow this. Each dependency is needed at different versions and its not much of a cost to just pull required dependencies even if its redundant. I only see a problem with this method when nixpkgs is an input and only because of how large nixpkgs currently is.
This was where my objection to the extra follows use came from for digga.

04:20:21
@pachumicchu:myrdd.infoPacman99 *

reduce -> don't bother about non-nixpkgs, since they are usually libs, are small and don't have huge deps themselves
push to the leaf -> make it a responsability of the end user flake. (Almost) all follows issues that I still hace seen with recent versions could be resolve when the follows statements are used at the leaf.

On this, I've always favored reduce. I think cargo and npm style package managers follow this. Each dependency is needed at different versions and its not much of a cost to just pull required dependencies even if its redundant. I only see a problem with this method when nixpkgs is an input and only because of how large nixpkgs currently is.
This was where my objection to the extra follows use came from for digga.

04:20:45
@pachumicchu:myrdd.infoPacman99Somewhat related to goal of unifying deployments through deploy: https://github.com/NixOS/nixpkgs/pull/14892104:35:51
13 Dec 2021
@blaggacao:matrix.orgDavid Arnold (blaggacao) I think deploy-rs can be a good platform to explore the territories when nix gets rust bindings for the core parts of it. 01:54:27
@kraftnix:matrix.org@kraftnix:matrix.org
In reply to @pachumicchu:myrdd.info

reduce -> don't bother about non-nixpkgs, since they are usually libs, are small and don't have huge deps themselves
push to the leaf -> make it a responsability of the end user flake. (Almost) all follows issues that I still hace seen with recent versions could be resolve when the follows statements are used at the leaf.

On this, I've always favored reduce. I think cargo and npm style package managers follow this. Each dependency is needed at different versions and its not much of a cost to just pull required dependencies even if its redundant. I only see a problem with this method when nixpkgs is an input and only because of how large nixpkgs currently is.
This was where my objection to the extra follows use came from for digga.

yeah, I actually wanted to follow this method, but in the end I had to hard follow every single input of every flake I used, due to what I can only imagine is a new bug.

I started getting some extremely strange handling differences between nix develop/direnv and nix * commands. unless I forced followed every input for a flake, my flake.lock would update every time I ran nix develop or nix build, I could run them directly after each other without changing anything within the repo and would get a different flake.lock each time, it would alternate between the "correct version" where some of the follows were respected, to the "incorrect version" where my follows would be ignored and the upstream flake's origin inputs would be followed. It was really really strange.

it could to the point where I couldn't even update inputs correctly, had 10 versions of nixpkgs in my flake.lock and the repl refused to run anything (citing change required in flake, but enable to change the lockfile), and the only thing I could do was delete flake.lock and try again

12:09:24
@kraftnix:matrix.org@kraftnix:matrix.orgI wanted to make a reproducible example to report it upstream, but other priorities have been taking up my time12:10:02
@blaggacao:matrix.orgDavid Arnold (blaggacao) I already had reported this behaviour. I currently use a very recent version of nix after balsoft's anew follows fix. 21:57:43
@blaggacao:matrix.orgDavid Arnold (blaggacao)Also, in envrc: donte use direnv-nix, it's broken, use the pure nix variant and use the flags that avoid updating your flake lock file.21:58:47
@blaggacao:matrix.orgDavid Arnold (blaggacao) It's pretty annoying that an automated tool.lile.direnv would modify your repo 21:59:17
14 Dec 2021
@gytis-ivaskevicius:matrix.org@gytis-ivaskevicius:matrix.orgare any of you aware of the future of nix cli and flakes?09:22:41
@gytis-ivaskevicius:matrix.org@gytis-ivaskevicius:matrix.organy 'lesser known' information by any chance?09:23:03
15 Dec 2021
@blaggacao:matrix.orgDavid Arnold (blaggacao)https://github.com/moby/buildkit/issues/165014:52:50
@blaggacao:matrix.orgDavid Arnold (blaggacao)We gotta star that implementation, can't be that there are mostly docker folks among the stargazers of a primarily nix-related technology 😄14:53:29
16 Dec 2021
@pachumicchu:myrdd.infoPacman99 changed their display name from Pacman99 to pachumicchu.05:12:59
@pachumicchu:myrdd.infoPacman99 22:32:48
20 Dec 2021
@Sweenu:matrix.orgBruno Hey! I'm trying to use nix-on-droid with digga. Is it possible to have your phone be like any other host, using profiles and suites with the exception that is uses nix-on-droid? I don't quite understand how I would do that in the flake.nix... 09:54:53

Show newer messages


Back to Room ListRoom Version: 6