<Jezhehim[m]>
[nicolas](https://matrix.to/#/@hobbit:nerdsin.space) Cool, thanks, that makes sense!
cole-h has quit [Quit: Goodbye]
devalot has quit [Ping timeout: 264 seconds]
dermetfan has joined #home-manager
maxsc has joined #home-manager
joesventek has quit [Quit: Quit]
joesventek has joined #home-manager
joesventek has quit [Client Quit]
joesventek has joined #home-manager
joesventek has quit [Client Quit]
joesventek has joined #home-manager
maxsc has quit [Ping timeout: 240 seconds]
dermetfan has quit [Quit: WeeChat 2.7.1]
joesventek has quit [Quit: Quit]
joesventek has joined #home-manager
superherointj has joined #home-manager
<siraben>
How can I use cachix with home-manager?
<NobbZ[m]>
`cachix use foo`
<NobbZ[m]>
If you are a trusted user.
<NobbZ[m]>
It will then use the cache, if it hits something in it.
<NobbZ[m]>
siraben: Or do you mean something else?
<siraben>
NobbZ: cachix use foo seems to create a conflict between different versions of ctags
<NobbZ[m]>
I doubt so. That has to relate to something else.
<NobbZ[m]>
Perhaps you can show the full error you see? Preferably in a pastebin or equivalent
<siraben>
Ok, lemme get it
<NobbZ[m]>
Just because you use a certain cache, it doesn't mean that it installs anything more or less as it would without, it just builds less stuff from source, at least in theory.
<siraben>
NobbZ: do I install cachix via home-manager?
<NobbZ[m]>
As I already said, I strictly prefer to not use `nix-env` at all. But you can use use various pinning to get that attribute into your `home.packages` or even `programs.emacs.package`.
<siraben>
NobbZ: Right, I get the bit about not using nix-env, but I'm not sure how to modify my home.nix to do that
<NobbZ[m]>
Sorry, my fault, it has to be `pkgs.fetchTarball`
<siraben>
NobbZ: Hm, still doesn't work.
<siraben>
When I go into the nix repl, pkgs doesn't have a fetchTarball attribute
<pbogdan>
builtins.fetchTarball or just fetchTarball
<NobbZ[m]>
Depends where `pkgs` comes from…
<siraben>
Ah, thanks pbogdan
<NobbZ[m]>
Usually `pkgs` is `import <nixpkgs> {}`, so `pkgs` should have that attribute
<pbogdan>
it's a Nix builtin and I don't think it's directly exposed in nixpkgs
<siraben>
NobbZ: `pkgs` is an argument to `home.nix`
<siraben>
At the top of my `home.nix` I have `{ config, pkgs, lib, currentSystem, ... }:`
<NobbZ[m]>
Yeah, and for me, it contains `fetchTarball`. Though might be that things on mac are different…
<pbogdan>
weird, there's nothing in nixpkgs that would seem to export it
<pbogdan>
but I'm guessing it's always available as `fetchTarball` as Nix itself provides it
<NobbZ[m]>
So, if it is with or without `pkgs`… Does it work at all?
<siraben>
It's working, thanks all.
<siraben>
Rebuilding emacs now, I guess cachix didn't have it.
kenran has quit [Ping timeout: 256 seconds]
<NobbZ[m]>
Or you haven't specified the correct cache… Did you use `foo` or the cache that was proposed by the github repo?
<siraben>
NobbZ: the one that was proposed by the github repo
<siraben>
cachix use gccemacs-darwin
<NobbZ[m]>
Then for some reason it doesn't match your inputs. Something is different. But as far as I can tell the repo you linked did pin about everything… So not sure why it can't be found in the cache… If the cache is actually used. As there is no `configuration.nix` for system configuration, I'm not sure how the cache is set up on a mac at all.
<NobbZ[m]>
Something in your home.nix already provides ctags. I can't tell what it is. But the error might be slightly more clear if you install both of these packages through Home-manager
kenran has joined #home-manager
kenran has quit [Ping timeout: 272 seconds]
<siraben>
NobbZ: If I install via home-manager, then it starts to build the package from scratch
<siraben>
Also, everything is in home-manager, the only thing installed via nix-env is nix, ca-cert and home-manager
<siraben>
NobbZ: Oh, emacs-mac is interfering
<siraben>
And now it's home-manager-path
<siraben>
Ok, priority set to 2
<NobbZ[m]>
Why have 2 emacs' at all?
<eyJhb>
NobbZ[m]: double the productivity
__monty__ has joined #home-manager
<NobbZ[m]>
I'd understand if it was in different environments… But both in the user profile? Both would end up in `~/.nix-profile/bin/emacs`, unless wrapped to produce a different executable name, while also having all those other propagated inputs or even executables as in this case that might clash…
joesventek has quit [Quit: Quit]
joesventek has joined #home-manager
<siraben>
NobbZ: Got rid of my other emacs, heh
<siraben>
I wanted to try this faster native-comp branch of emacs