| 23 Dec 2025 |
Acid Bong | each method has its pros and cons, there's no objective preference, choose your poison yourself | 20:22:23 |
Acid Bong | but note that many nixified projects are flake-only or have limited non-flake usage (for example, Cachix' git-hooks.nix (Pre-commit wrapper) doesn't support substituting your own instance of pkgs) | 20:24:01 |
Acid Bong | (i'm not sure tho, if general Nix ecosystem is ontopic here or better fits #Nix / NixOS 🤔) | 20:25:18 |
Acid Bong | (i'm not sure tho, if general Nix ecosystem is ontopic here or better fits #Nix / NixOS 🤔, but i'm no moderator to decide that) | 20:25:38 |
pltrz | acknowledged; thank you! | 20:30:32 |
thubrecht | 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;
};
| 20:31:51 |
Acid 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 | 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 |
Acid Bong | but it still initiates a new instance of pkgs in that default.nix 🤔 | 21:20:34 |
| 24 Dec 2025 |
| Kurotoshiro joined the room. | 10:57:12 |
@petrichor:envs.net | error: unable to download 'https://cache.lix.systems/wd3z3fax8460zifpzi4v50zfq5l2jfbv.narinfo': Connection timed out after 5005 milliseconds (curl error code=28) 😠| 12:01:43 |
@petrichor:envs.net | is cache.lix.systems down temporarily? | 12:02:04 |
raitobezarius | Yep, that's correct | 12:02:46 |
raitobezarius | It will probably down for a while alas... | 12:02:54 |