thomashoneyman has quit [Remote host closed the connection]
liff has joined #home-manager
sondr3 has joined #home-manager
<sondr3>
I've been looking to integrate home-manager as a NixOS module and saw in the docs PR that you can import it with fetchTarball so you don't have to set channels
<sondr3>
However I cannot figure out properly how to do it
<rycee>
You should know, though, that this will cause the system to be difficult to build when you are offline since the downloaded tarball is only cached for a little while, like an hour or so by default.
<rycee>
A better solution is to use pkgs.fetchFromGitHub with a specific commit hash, e.g., have `hmRepo = pkgs.fetchFromGitHub { … }` in a let section in the configuration and then do `imports = [ "${hmRepo}/nixos" ]`.
<sondr3>
I can't think of a time when I was without internet and trying to build my system, so I don't think it'll be a problem :)
<rycee>
But then you need to bump the revision occasionally.
<rycee>
Cool :-)
<sondr3>
Follow up question, with home-manager as a module, how does configuring Fish shell work? I've seen a few issues about this on Github
<rycee>
I can't say much about that since I don't use Fish myself. I think people are successfully using it. There seem to be some improvements going on to allow installing Fish plugins directly through HM.
<sondr3>
Really looking forward to that, I opened that initial issue. Thanks though, I'll give it a go and see how it goes
<inquisitiv3>
If I were to add Emacs packages by naming them in the `programs.emacs.extraPackages` list, do I need to know where they are downloaded from? I've seen several Nix+Emacs configurations were they specify if one should download the package from MELPA or ELPA.
<pie___>
rycee, what? tarballs are only cached temporarily?
<pie___>
TIL. >_>
<pie___>
sondr3, ive ran into it a few times -_-
<pie___>
sondr3, one of the more annoying things about nix IMO
<pie___>
if i was able to get a shell before, i should be able to get it without internet
<pie___>
*if i still have a shell open
<rycee>
pie___: Tarballs fetched using `builtins.fetchTarball` are only cached for a while (as per the ` tarball-ttl` option that is 1 hour by default)
<rycee>
inquisitiv3: I think in general you don't need to know. I certainly don't :-)
<rycee>
inquisitiv3: But if you specifically want to install a package abc from, say, melpa then use epkgs.melpaPackages.abc.
<inquisitiv3>
rycee: Good to know I don't need to think about it :)
<inquisitiv3>
Thanks
<inquisitiv3>
If I install packages with Home Manager I only need to think about loading them in my Emacs config after that?
<rycee>
Yeah, you can use use-package for that, for example.
<inquisitiv3>
rycee: Great idea! I'll check it out
inquisitiv3 has quit [Ping timeout: 245 seconds]
inquisitiv3 has joined #home-manager
<inquisitiv3>
Is Emacs packages downloaded directly from Github or from a Nixpkgs repo?
<rycee>
I think the package code is typically downloaded from the upstream source. It's then built locally into the Nix store.
<inquisitiv3>
Hmm, it doesn't feel reliable if it's pulling from HEAD in master. Is there some way to manage that? You never know when breakages appear.
<rycee>
The Emacs packages are fetched from a specific commit so not HEAD.
<inquisitiv3>
Great! Then I feel safe
<inquisitiv3>
Btw, saw that you live in Sweden. Are you going to Foss-north?
<rycee>
Hmm, haven't heard of it. Don't think I have time to go. But I'll go to the meetup in Copenhagen on Tuesday.
<rycee>
Do you know if there is any nixos/guix people going to foss-north?
<inquisitiv3>
rycee: There aren't any NixOS/Guix talks what I know of, but there's several student that use Nix/Guix that will be attending.
<inquisitiv3>
But I think it would be very cool to have a Nix talk next year if you aren't able to make it this year.
<rycee>
Checked the dates and yeah I can't make it but certainly it would be interesting for next year.
<rycee>
Do you know if it's possible to subscribe for the announcement anywhere?
<inquisitiv3>
I'll check
<inquisitiv3>
Can't find any conference specific feed/newsletter. But it's Foss-Gbg that organize the conference. There's a RSS feed for the blog, a mailing list for the group and every meetup and community day (new for this year) is announced at meetup.com.
<inquisitiv3>
We also got a Slack instance now (foss-sweden.slack.com). It haven't been used much yet, but we'll probably move more and more communication there.