!9IQChSjwSHXPPWTa:lix.systems

Lix

1112 Members
Lix user channel. Feel free to discuss on-topic issues here and give each other help. For matrix.to links to the rest of the Lix channels, see: https://wiki.lix.systems/books/lix-organisation/page/matrix-rooms298 Servers

Load older messages


SenderMessageTime
23 Dec 2025
@acidbong:envs.netAcid Bong
In reply to @thubrecht:matrix.org

You just have to find the right entrypoint, in that case, the following works:

    git-hooks = import (source."git-hooks.nix" + "/nix") {
      nixpkgs = source.nixos-unstable;
      gitignore-nix-src = null;

      system = builtins.currentSystem;
      isFlakes = false;
    };

wait, will gitignore-nix-src = null; isFlakes = false; actually work? looking at this code, i see it needs gitignore.nix to be non-null
20:52:41
@thubrecht:matrix.orgthubrecht It is only used if you want to build the pre-commit check via a derivation, if you only care for the shellHook then it is unused (also the isFlakes = false is unnecessary after all) 21:04:33
@acidbong:envs.netAcid Bong but it still initiates a new instance of pkgs in that default.nix 🤔 21:20:34

There are no newer messages yet.


Back to Room ListRoom Version: 10