!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
9 Dec 2021
@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
21 Dec 2021
@Sweenu:matrix.orgBruno

Another unrelated question.
I do not understand where my package come from. I thought they be coming from nixpkgs/nixos-unstable because I have this in my flake.nix:

  inputs = {
    nixos.url = "github:nixos/nixpkgs/nixos-unstable";

But after I nix flake update and rebuild, I seem to have packages coming from a 22-days old commit of the nixos-unstable branch 🤔

14:59:46
@kraftnix:matrix.org@kraftnix:matrix.org
In reply to @Sweenu:matrix.org
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...
I played with devos + nix-on-droid a few months ago and did have a few issues but never got to the bottom of it as i ran out of cell reception on the train which stopped my experimentation. I don't see why you can't at least do home/user configurations on nix-on-droid
15:12:55
@kraftnix:matrix.org@kraftnix:matrix.org
In reply to @Sweenu:matrix.org

Another unrelated question.
I do not understand where my package come from. I thought they be coming from nixpkgs/nixos-unstable because I have this in my flake.nix:

  inputs = {
    nixos.url = "github:nixos/nixpkgs/nixos-unstable";

But after I nix flake update and rebuild, I seem to have packages coming from a 22-days old commit of the nixos-unstable branch 🤔

what packages are "from an old commit" of nixpkgs? how are you checking/verifying? is your flake.lock updated to a recent commit as expected?
15:14:39
@Sweenu:matrix.orgBruno

Thanks for your answers! I'm checking with poetry. On my machine it is at version 1.10 but as you can see here https://github.com/NixOS/nixpkgs/blame/master/pkgs/development/python-modules/poetry/default.nix#L27 it's been updated to 1.12 17 days ago. I checked the flake.lock and the nixos section is at the latest commit (~12 hours ago).

Here's my full flake.nix: https://gist.github.com/sweenu/a432ff3feb9b55375f328c49a61860db

15:20:16
@Sweenu:matrix.orgBruno *

kraftnix: Thanks for your answers! I'm checking with poetry. On my machine it is at version 1.10 but as you can see here https://github.com/NixOS/nixpkgs/blame/master/pkgs/development/python-modules/poetry/default.nix#L27 it's been updated to 1.12 17 days ago. I checked the flake.lock and the nixos section is at the latest commit (~12 hours ago).

Here's my full flake.nix: https://gist.github.com/sweenu/a432ff3feb9b55375f328c49a61860db

17:12:14
@kraftnix:matrix.org@kraftnix:matrix.org so I can't see anything particularly wrong with your flake, but since I don't have the rest of the repo I can only make assumptions as to how it's set up and how you are trying to use poetry, especially since I can't see the flake.lock file in the gist. do you have many nixpkg inputs in your lockfile? is the issue isolated to poetry or across all packages? otherwise you might be hitting the follows + direnv bug that has been mentioned recently above (that has also affected me) as you don't have any anti-corruption layer (see devos' flake.nix) 20:57:28
@Sweenu:matrix.orgBruno
In reply to @kraftnix:matrix.org
so I can't see anything particularly wrong with your flake, but since I don't have the rest of the repo I can only make assumptions as to how it's set up and how you are trying to use poetry, especially since I can't see the flake.lock file in the gist. do you have many nixpkg inputs in your lockfile? is the issue isolated to poetry or across all packages? otherwise you might be hitting the follows + direnv bug that has been mentioned recently above (that has also affected me) as you don't have any anti-corruption layer (see devos' flake.nix)
Same problem with firefox which stays at 95.0.1 instead of 95.0.2. I tried adding the corruption layer, but it didn't work more. Here's the flake.lock: https://gist.github.com/sweenu/9969fdd5aaaf5f5a72fa7a12f8312f09
21:29:18
@kraftnix:matrix.org@kraftnix:matrix.org well one thing I notice is your latest input is using a nixos-unstable commit from Nov 29th (8a308775674e178495767df90c419425474582a1), so if you have overrides/overlays or you are using the latest channel then it will give old version. you may want to set digga.inputs.latest.follows to the nixpkgs master branch or just to nixos to be the same as your regular input. Otherwise the only thing I can think is have you tried deleting your lockfile and regenerating it? 22:21:36
@Sweenu:matrix.orgBrunoRedacted or Malformed Event22:41:08

Show newer messages


Back to Room ListRoom Version: 6