!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

894 Members
181 Servers

Load older messages


SenderMessageTime
27 Jun 2023
@kurogeek:matrix.orgkurogeek joined the room.07:36:58
@twitchy0:matrix.orgtwitchy0Is there a way to ensure that the source for a flake.lock is always available in my nix store? I think it's getting garbage collected.12:25:17
@twitchy0:matrix.orgtwitchy0

On the nixos wiki I see the following for overlays

overlays."<name>" = final: prev: { };
overlays.default = { };

Are the types of these two the same?

12:44:08
@twitchy0:matrix.orgtwitchy0 *

On the nixos wiki for flakes I see the following for overlays

overlays."<name>" = final: prev: { };
overlays.default = { };

Are the types of these two the same?

12:44:18
@artturin:matrix.orgArtturin
In reply to @twitchy0:matrix.org

On the nixos wiki for flakes I see the following for overlays

overlays."<name>" = final: prev: { };
overlays.default = { };

Are the types of these two the same?

yes, edited the wiki to make them the same
12:52:03
@kingofscorchers:matrix.orgpat joined the room.16:12:01
@kingofscorchers:matrix.orgpatI have a basic question about flakes. If flake A depends on flake B, and both flake A and flake B depend on flake C, then when the lock file is generated for flake A, will it respect the lock file for flake B for the specific version of flake C? Does adding "flakeB.inputs.flakeC = ..." in the flake.nix file for flake A change this behavior?16:30:41
@crtified:crtified.meCRTifiedYes, it respects the lock of flake b16:31:58
@crtified:crtified.meCRTified follows is used to override that 16:32:11
@crtified:crtified.meCRTified

From the wiki:

sops-nix = {
      url = "github:Mic92/sops-nix";
      # The `follows` keyword in inputs is used for inheritance.
      # Here, `inputs.nixpkgs` of sops-nix is kept consistent with the `inputs.nixpkgs` of
      # the current flake, to avoid problems caused by different versions of nixpkgs.
      inputs.nixpkgs.follows = "nixpkgs";
    };
16:32:41
@crtified:crtified.meCRTifiedhttps://nixos.wiki/wiki/Flakes#Flake_schema16:33:10
@kingofscorchers:matrix.orgpatGot it. Thanks for the quick response!16:33:16
29 Jun 2023
@emilazy:matrix.orgemily any way to do nix flake check only for the current system? 06:24:47
@emilazy:matrix.orgemilychecking e.g. whether other systems' outputs are valid derivations has issues with IFD :(06:25:10
@a-kenji:matrix.orgkenji
In reply to @emilazy:matrix.org
any way to do nix flake check only for the current system?
Isn't that what the current nix release does?
06:52:23
@a-kenji:matrix.orgkenjiAt least I know it does it for `nix flake show` , I thought it also does it for the checks, but I am not sure.06:53:02
@emilazy:matrix.orgemilynot according to the results i'm getting :)06:59:44
@emilazy:matrix.orgemily it won't build for other platforms 06:59:47
@emilazy:matrix.orgemilybut it will run derivation checks for them06:59:54
@emilazy:matrix.orgemilyin the presence of IFD, evaluation requires building, so...07:00:04
@theophane:hufschmitt.net@theophane:hufschmitt.net emily: I think something for that got added recently 07:51:40
@theophane:hufschmitt.net@theophane:hufschmitt.nethttps://github.com/NixOS/nix/pull/7759 . Should be in 2.16 if I'm not mistaken07:52:41
30 Jun 2023
@sandro:supersandro.deSandro 🐧yes, saw that yesterday 19:14:14
@beect:matrix.orgbeect changed their display name from Brendan Taylor to beect.21:53:06
1 Jul 2023
@industrial:matrix.orgIndustrial

Hi. I'm trying to use someone else's flake and run programs that it built:

https://gist.github.com/Industrial/b91a195cfb1628e86b1fbd617ac14633

I'm getting error: Dependency is not of a valid type: element 2 of buildInputs for nix-shell.

I don't understand the structure of the llama-cpp package/flake or how to get the commandline programs from it and make them available in my devShell. I tried using ChatGPT to get it to work but it's not creating a working flake for me :/

(https://github.com/ggerganov/llama.cpp/blob/master/flake.nix)

12:08:16
@industrial:matrix.orgIndustrial I see that it defines a packages.default and also has apps. 12:08:59
@sandro:supersandro.deSandro 🐧the second list entry for buildInputs is something not the package13:37:28
@industrial:matrix.orgIndustrial Yes, so I don't understand how to reference the programs created in the llama.cpp flake so that I can use them in my own flake. 15:40:32
@industrial:matrix.orgIndustrial @Sandro 🐧 Could you perhaps take a look at https://github.com/ggerganov/llama.cpp/blob/master/flake.nix ? 15:48:29
@sandro:supersandro.deSandro 🐧🤷16:58:23

Show newer messages


Back to Room ListRoom Version: 6