!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

896 Members
182 Servers

Load older messages


SenderMessageTime
27 Sep 2023
@antifuchs:asf.computer@antifuchs:asf.computer that will define the "pkgs" attribute available in the perSystem closure's arguments as the overlaid version, but you then also have to go and use that pkgs attribute to define the system / home-manager configuration... that's typically what trips me up 17:49:43
@antifuchs:asf.computer@antifuchs:asf.computerbut anyway, how are you planning to use the overlay? (:17:50:28
28 Sep 2023
@amnicolist:matrix.orgamnicolist
In reply to @antifuchs:asf.computer
amnicolist: you're following the "consuming an overlay" section?

Yes, I saw the stuff about consuming the overlay. That explained how to get the rust-overlay into the pkgs. I think I kind-of get that. The problem came when I wanted to actually install the package. I want to have multiple rust tool chains installed, nightly for some things etc. My understanding fell down when I tried to call something like

  home.packages = with pkgs; [
    rust-bin.stable.latest.default
  ];
00:58:36
@amnicolist:matrix.orgamnicolist
In reply to @antifuchs:asf.computer
amnicolist: you're following the "consuming an overlay" section?
*

Yes, I saw the stuff about consuming the overlay. That explained how to get the rust-overlay into the pkgs. I think I kind-of get that. The problem came when I wanted to actually install the package. I want to have multiple rust tool chains installed, nightly for some things etc. My understanding fell down when I tried to call something like

  home.packages = with pkgs; [
    rust-bin.stable.latest.default
  ];

Nixos would complain that it can't find rust-bin. I don't really get where it comes from in the overlay part so I couldn't reverse engineer the

        # ... things you need to patch ...
      })
01:00:02
@amnicolist:matrix.orgamnicolist *

Yes, I saw the stuff about consuming the overlay. That explained how to get the rust-overlay into the pkgs. I think I kind-of get that. The problem came when I wanted to actually install the package. I want to have multiple rust tool chains installed, nightly for some things etc. My understanding fell down when I tried to call something like

  home.packages = with pkgs; [
    rust-bin.stable.latest.default
  ];

Nixos would complain that it can't find rust-bin. I don't really get where it comes from in the overlay part so I couldn't reverse engineer the

        # ... things you need to patch ...
      })
01:00:31
@amnicolist:matrix.orgamnicolist *

Yes, I saw the stuff about consuming the overlay. That explained how to get the rust-overlay into the pkgs. I think I kind-of get that. The problem came when I wanted to actually install the package. I want to have multiple rust tool chains installed, nightly for some things etc. My understanding fell down when I tried to call something like

  home.packages = with pkgs; [
    rust-bin.stable.latest.default
  ];

Nixos would complain that it can't find rust-bin. I don't really get where it comes from in the overlay part so I couldn't reverse engineer the

(final:
        # ... things you need to patch ...
      })
01:00:42
@jc:jc1.ca@jc:jc1.ca joined the room.03:34:17
@jc:jc1.ca@jc:jc1.ca left the room.03:36:22
@ThorHop:matrix.org@ThorHop:matrix.org changed their display name from hopland to hopland (negative nancy).21:37:10
29 Sep 2023
@petrichor:envs.net@petrichor:envs.net
In reply to @amnicolist:matrix.org

Yes, I saw the stuff about consuming the overlay. That explained how to get the rust-overlay into the pkgs. I think I kind-of get that. The problem came when I wanted to actually install the package. I want to have multiple rust tool chains installed, nightly for some things etc. My understanding fell down when I tried to call something like

  home.packages = with pkgs; [
    rust-bin.stable.latest.default
  ];

Nixos would complain that it can't find rust-bin. I don't really get where it comes from in the overlay part so I couldn't reverse engineer the

(final:
        # ... things you need to patch ...
      })
just had a look at that section of those docs and it's a bit confusing. you don't need to use the (final: prev: {…}) for at all (that's for defining your own quick inline overlay), you should be able to set overlays = [ inputs.rust-overlay.overlays.default];
06:19:43
@petrichor:envs.net@petrichor:envs.net* just had a look at that section of those docs and it's a bit confusing. you don't need to use the `(final: prev: {…})` form at all (that's for defining your own quick inline overlay), you should be able to set `overlays = [ inputs.rust-overlay.overlays.default];`06:20:19
30 Sep 2023
@marwri:matrix.orgmarwri joined the room.04:31:57
1 Oct 2023
@kchibisov:matrix.org@kchibisov:matrix.org left the room.08:11:27
@rwx-rwx-rwx:matrix.orgMikael Fangel joined the room.09:33:44
@ThorHop:matrix.org@ThorHop:matrix.org changed their display name from hopland (negative nancy) to hopland (positive pete).17:20:12
@ThorHop:matrix.org@ThorHop:matrix.org changed their display name from hopland (positive pete) to hopland (ambivalent andy).17:44:01
3 Oct 2023
@pederbs:pvv.ntnu.nopbsds changed their profile picture.21:04:21
4 Oct 2023
@pederbs:pvv.ntnu.nopbsds changed their profile picture.22:20:26
@ThorHop:matrix.org@ThorHop:matrix.org changed their display name from hopland (ambivalent andy) to hopland (glib gary).23:15:46
9 Oct 2023
@toomanytomatoes:hackliberty.orgTooManyTomatoes joined the room.05:48:16
@ronnypfannschmidt:matrix.org@ronnypfannschmidt:matrix.orgis there an common way to register new outputs - i'd like to register pre-commit hooks as a flake output in a sane way (new app type)08:02:40
@dunxen:x0f.orgdunxen joined the room.14:25:33
10 Oct 2023
@sylvance:matrix.orgsylvance_theone joined the room.06:02:23
@woobilicious:matrix.orgwoobilicious joined the room.07:21:01
@woobilicious:matrix.orgwoobilicious
In reply to @ronnypfannschmidt:matrix.org
is there an common way to register new outputs - i'd like to register pre-commit hooks as a flake output in a sane way (new app type)
The wiki says there's no spec and it's all defined by what tools use it (i.e. nix build), I would say just edit the wiki page with your output, maybe an RFC should be opened for that...or even just nixpkgs thread.
07:26:07
@woobilicious:matrix.orgwoobiliciouswhat's the correct way to pin nixpkgs via the registry declarively in NixOS conf? I notice I have a system and global nixpkgs that dont match, and I wonder what I did wrong.07:29:23
@petrichor:envs.net@petrichor:envs.net nix.registry.nixpkgs.flake = inputs.nixpkgs; or similar ought to do the trick 08:23:33
@petrichor:envs.net@petrichor:envs.net if you do nix registry list you should see that the nixpkgs registry entry points to a path in the nix store so you know its pinned 08:25:07
@petrichor:envs.net@petrichor:envs.net other flakes will still use whatever is specified in their own flake.lock of course 08:26:39
@woobilicious:matrix.orgwoobilicious

Jez (he/him) ♾️: system looks correct, is it just impossible to switch out the global one to stable?

❯ nix registry list | grep flake:nixpkgs
system flake:nixpkgs path:/nix/store/splp4lqr6n115q125nhqk2qmg81hsk1r-source?lastModified=1694048570&narHash=sha256-PEQptwFCVaJ+jLFJgrZll2shQ9VI%2f7xVhrCYkJo8iIw=&rev=4f77ea639305f1de0a14d9d41eef83313360638c
global flake:nixpkgs github:NixOS/nixpkgs/nixpkgs-unstable
08:54:16

Show newer messages


Back to Room ListRoom Version: 6