!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

885 Members
179 Servers

Load older messages


SenderMessageTime
27 Aug 2023
@kranzes:matrix.orgIlan Joselevich (Kranzes) nix flake update --commit-lock-file 16:22:10
@kranzes:matrix.orgIlan Joselevich (Kranzes)This commits the file after an update with a commit description/message indicating which things got updated16:22:28
@antifuchs:asf.computer@antifuchs:asf.computeroooooh, TIL!16:23:16
@crtified:crtified.meCRTifiedBut that only shows what changed for the inputs, i.e. the git rev16:24:12
@kranzes:matrix.orgIlan Joselevich (Kranzes) yup, if you want something for actual derivations you could use nix store diff-closures 16:24:35
@antifuchs:asf.computer@antifuchs:asf.computerHm hm hm. I think yeah, the closure diff would be preferable. Guess I’d have to identify the thing I would like to diff; but it would probably work. Hmmmmm.17:17:23
@theclearpill:matrix.orgMoritz joined the room.17:21:26
@antifuchs:asf.computer@antifuchs:asf.computerthe alternative would be to not open a PR and push to the default branch directly, it's about the same amount of scrutiny that these updates get (:18:18:32
@goodboy:matrix.orglord_fomo joined the room.21:22:29
@abose:matrix.orgcatch22 joined the room.22:08:15
30 Aug 2023
@mewp:nurupo.plmewp what is the proper method to have a nixos module use a package defined in the same flake? is there a current system available somewhere so that I could use packages.${currentSystem}. something? 10:50:22
@mewp:nurupo.plmewp oh, Imanaged to find pkgs.system, nevermind 10:56:09
@mewp:nurupo.plmewp* oh, I managed to find `pkgs.system`, nevermind10:56:17
@petrichor:envs.net@petrichor:envs.net mewp: see also https://github.com/hercules-ci/flake-parts which might help with maintainability in the long run 11:00:14
@adham-omran:matrix.org@adham-omran:matrix.org left the room.16:00:08
@cw:kernelpanic.cafeChinchilla Optional joined the room.22:08:00
@cw:kernelpanic.cafeChinchilla Optional How can I specify a branch for a local (git+file:) flake? 22:11:05
@cw:kernelpanic.cafeChinchilla OptionalOh, looks like `?ref=<branchname>'22:13:30
31 Aug 2023
@arianvp:matrix.org@arianvp:matrix.org how is nixConfig option supposed to work? 09:25:44
@arianvp:matrix.org@arianvp:matrix.org I tried to add the nixConfig.bash-prompt option but my prompt doesnt change in nix-develop 09:25:55
@industrialrobot:matrix.orgindustrialrobot changed their display name from IndustrialRobot (she/her) to IndustrialRobot.10:50:49
@antifuchs:asf.computer@antifuchs:asf.computerI don't think all the settings are piped through? this seems like it would be better to set in the dev shell definition of the flake11:52:32
@antifuchs:asf.computer@antifuchs:asf.computerthat said, I haven't gotten the binary cache (the example given in the docs) to work with nixConfig either11:52:52
@moritz.hedtke:matrix.orgMoritz Hedtke removed their display name moritz.hedtke.16:13:17
@penguincoder:matrix.wolfie.pw@penguincoder:matrix.wolfie.pw

is it possible to use flakes to build multiple other git repos but use the source checked out on my machine, not necessarily what has been committed to the repo?

example: I have a meta-repo called nix-techstack and it checks out a bunch of other repos under nix-techstack/src/ and in nix-techstack/flake.nix I am trying to define all of the packages/apps/devShells for all of the other repos in src/. will I have to put a flake.nix anywhere I want to build or can I keep it in my meta-repo?

17:12:48
@penguincoder:matrix.wolfie.pw@penguincoder:matrix.wolfie.pwwould I need to add the other repos as submodules?17:18:02
@philiptaron:matrix.org@philiptaron:matrix.org joined the room.21:47:00
1 Sep 2023
@lxsameer:matrix.orglxsameer

hey folks, I have the following default.nix file and flake.nix file in my root:
default.nix:

let
    nativePkgs = import <nixpkgs> {};
    system = import ./system.nix { pkgs = nativePkgs; };
    pkgs = import <nixpkgs> system;
    llvm = pkgs.llvmPackages_16.override { stdenv = pkgs.llvmPackages_16.libcxxClang; };
    libcxxClangOverlay = final: prev: {
        stdenv = prev.stdenv.override { stdenv = llvm.libcxxClang; };
    };

    finalPkgs = import <nixpkgs> system // { overlays = [ libcxxClangOverlay ]; };
in {
    pkgs = finalPkgs;
    #pkgs.stdenv.override { stdenv = llvm.libcxxClang; };
}


flake.nix

{

  inputs = {
      toolchain = import ./.;
  };

  outputs = inputs@{ toolchain, ... }:
      {
          inherit (toolchain) pkgs;
      };

}

now when I load the flake in the repl I get this err message: error: expected a set but got a thunk at ... what am I doing wrong here?

18:02:38
@lxsameer:matrix.orglxsameerthat toolchain.pkgs seems to be a thunk, but can't tell really why. In a repl it works just fine (default.nix I mean) 18:18:40
2 Sep 2023
@artturin:matrix.orgArtturin
In reply to @lxsameer:matrix.org

hey folks, I have the following default.nix file and flake.nix file in my root:
default.nix:

let
    nativePkgs = import <nixpkgs> {};
    system = import ./system.nix { pkgs = nativePkgs; };
    pkgs = import <nixpkgs> system;
    llvm = pkgs.llvmPackages_16.override { stdenv = pkgs.llvmPackages_16.libcxxClang; };
    libcxxClangOverlay = final: prev: {
        stdenv = prev.stdenv.override { stdenv = llvm.libcxxClang; };
    };

    finalPkgs = import <nixpkgs> system // { overlays = [ libcxxClangOverlay ]; };
in {
    pkgs = finalPkgs;
    #pkgs.stdenv.override { stdenv = llvm.libcxxClang; };
}


flake.nix

{

  inputs = {
      toolchain = import ./.;
  };

  outputs = inputs@{ toolchain, ... }:
      {
          inherit (toolchain) pkgs;
      };

}

now when I load the flake in the repl I get this err message: error: expected a set but got a thunk at ... what am I doing wrong here?

probably can't be a import
01:41:08

Show newer messages


Back to Room ListRoom Version: 6