!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
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
@Sweenu:matrix.orgBruno

kraftnix: Thank you for your help, I modified latest to follow nixos like the rest and after a nix flake update I get:

• Updated input 'bud/beautysh/nixpkgs':
    'github:NixOS/nixpkgs/1dd151f0c0c216f416e9553af08f724a2499c795' (2021-12-21)
  → follows 'bud/nixpkgs'
• Updated input 'digga/deploy/nixpkgs':
    'github:NixOS/nixpkgs/1dd151f0c0c216f416e9553af08f724a2499c795' (2021-12-21)
  → follows 'digga/latest'
• Updated input 'digga/deploy/utils':
    'github:numtide/flake-utils/74f7e4319258e287b0f9cb95426c9853b282730b' (2021-11-28)
  → follows 'digga/flake-utils'
• Updated input 'digga/flake-utils-plus/flake-utils':
    'github:numtide/flake-utils/74f7e4319258e287b0f9cb95426c9853b282730b' (2021-11-28)
  → follows 'digga/flake-utils'
• Updated input 'digga/nixos-generators/nixlib':
    'github:nix-community/nixpkgs.lib/2762facc37b4f6f2bf61edc43dd63caef265f85a' (2021-12-19)
  → follows 'digga/nixlib'
• Updated input 'digga/nixos-generators/nixpkgs':
    'github:NixOS/nixpkgs/1dd151f0c0c216f416e9553af08f724a2499c795' (2021-12-21)
  → follows 'digga/blank'

Everything but digga/deploy/utils and digga/flake-utils-plus/flake-utils are from today. But it's still not updating my packages. Could the problem be from flake-utils ? 🤔 Sorry, I'm very new to nix and flakes even more so the questions might be silly

22:43:39
22 Dec 2021
@Sweenu:matrix.orgBruno Could it be the way I rebuild? sudo nixos-rebuild --flake (pwd)#(hostname) switch 18:12:57
@Sweenu:matrix.orgBruno

Oh shoot, I was using poetry to keep track of my problem, but actually poetry's a special case it seems: https://search.nixos.org/packages?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=poetry
There is a poetry derivation which source is here: https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/development/tools/poetry2nix/poetry2nix/pkgs/poetry/default.nix#L18
and a python39Packages.poetry which I was looking at to see the version.
But I was using the former package ... which version is still 1.1.10.
Sorry for the noise and thanks again for your help kraftnix .

I miss a way to easily see the current version of all my packages like I had on Arch. Even better, a way to see what versions my packages are going to be updated to when I rebuild. Is there a way to have these?

18:24:34
@kraftnix:matrix.org@kraftnix:matrix.org`nix-tree` can be useful for looking at relationships between derivations, but you can also use it to see versions19:59:02
@kraftnix:matrix.org@kraftnix:matrix.org`nvd` (iirc) is also useful for seeing version differences between closures19:59:23
@Sweenu:matrix.orgBrunoOh nice, thanks, that's super helpful!23:39:15
23 Dec 2021
@reptarmigam:matrix.orgre-ptarmigan❄️🐦️Hey, I'm trying to pull the latest devos using the instructions here https://devos.divnix.com/start/ When I allow direnv to evaluate, or run nix-shell I get an infinite recursion error in the fresh devos folder08:52:11
@Sweenu:matrix.orgBruno
In reply to @reptarmigam:matrix.org
Hey, I'm trying to pull the latest devos using the instructions here https://devos.divnix.com/start/ When I allow direnv to evaluate, or run nix-shell I get an infinite recursion error in the fresh devos folder
Hey, there is an issue right now indeed: https://github.com/divnix/devos/issues/394
Until it is resolved, you can git clone the repo (the repo won't be bare but it'll work at least)
10:38:10
@Sweenu:matrix.orgBrunoBud question, can I override the devshell category for the module? Right now, the category is devos, it's hardcoded: https://github.com/divnix/bud/blob/452ec18574b6e4d8b8a6aae9e190255d4c89768c/devshellModule.nix#L1610:39:44
@aynish:sealight.xyz@aynish:sealight.xyz changed their profile picture.11:37:51
@pachumicchu:myrdd.infoPacman99 changed their profile picture.21:43:58
26 Dec 2021
@cawilliamson:nixos.devcawilliamson joined the room.16:22:30
@cawilliamson:nixos.devcawilliamsonWooo! Trying to find this place is like trying to break in to Fort Knox! :O16:22:45
@lourkeur:nixos.dev@lourkeur:nixos.dev joined the room.17:31:10
@cawilliamson:nixos.devcawilliamsonHas anyone seen this issue? https://github.com/divnix/devos/issues/406 ``` [nixos]$ bud rebuild thinkpad test error: unrecognised flag '--extra-experimental-features' ``` I'm having an awful time trying to fix it. Tried everything I can think of - running nix manually (both inside and outside of devshell) accepts the flag but for some reason I still get this error. :(17:38:42
@cawilliamson:nixos.devcawilliamsonI need to submit a few PRs for documentation changes actually - some things are the wrong way around - like: `bud <host> <command>` when it should be the other way around. I believe that syntax order is from the older flk command. :)17:39:56
@teutat3s:pub.solar@teutat3s:pub.solarchrisaw: does `sudo nixos-rebuild test —flake '.#thinkpad' work?19:53:37
@teutat3s:pub.solar@teutat3s:pub.solar * chrisaw: does sudo nixos-rebuild test —flake '.#thinkpad' work? 19:59:48
@cawilliamson:nixos.devcawilliamson teutat3s: Yep, that looks to work. Any ideas how I can fix bud? :) 21:03:23
@teutat3s:pub.solar@teutat3s:pub.solar
In reply to @cawilliamson:nixos.dev
Wooo! Trying to find this place is like trying to break in to Fort Knox! :O
True, the link in the readme needs an update after the switch to matrix.org
21:23:39
@teutat3s:pub.solar@teutat3s:pub.solar chrisaw: no I didn’t fix it here yet, either. Will try in the next couple days when I'm at the laptop and post here. It’s probably using the wrong nix version somehow 21:25:38

Show newer messages


Back to Room ListRoom Version: 6