reddit / emacs
Anyone using Emacs on NixOS?
ringsted86 · 2022-04-15 23:28
I'm just wondering why it's not getting updated to version 28?
Usually NixPkgs is pretty fresh, but there's no activity.
Something I'm missing? Do you run Emacs using a flake instead?
saudade · 2022-04-15 23:50
\> Something I'm missing? Do you run Emacs using a flake instead?
Yep!
[https://github.com/mitchty/nix/blob/master/flake.nix#L25-L28](https://github.com/mitchty/nix/blob/master/flake.nix#L25-L28)
[https://github.com/mitchty/nix/blob/master/flake.nix#L79](https://github.com/mitchty/nix/blob/master/flake.nix#L79)
[https://github.com/mitchty/nix/blob/master/home/default.nix#L3-L12](https://github.com/mitchty/nix/blob/master/home/default.nix#L3-L12)
[https://github.com/mitchty/nix/blob/master/home/default.nix#L103-L116](https://github.com/mitchty/nix/blob/master/home/default.nix#L103-L116)
All just using this ultimately, its at 28.1 now with the overlay. nixpkgs is meant for stability if you want newer you gotta go for a different source. I just manage my nixos/macos/home configs via this flake now. More to keep adding but its pretty neat-o.
[https://github.com/nix-community/emacs-overlay](https://github.com/nix-community/emacs-overlay)
Its nice cause now all my use-package(s) are also now in nix with the overlay and for the lock file I have a github action to update that. So i can always go back to a working config. And I can use the jit version easy peasy lemon whatever, so its nice and fast.
mtndewforbreakfast · 2022-04-16 00:11
There are a few good auto-formatters available for nix source files if you're interested - `nixfmt` and `nixpkgs-fmt` are two such options.
saudade · 2022-04-16 00:15
Everything in that repo is already formatted with nixpkgs-fmt:
https://github.com/mitchty/nix/blob/master/static/home/profile#L376-L377
mtndewforbreakfast · 2022-04-16 00:21
Heh, sorry. Apparently GitHub indentation display is partially CSS or JS based - when I first viewed it on mobile it was very haphazard and mostly left-aligned, but that was a visual bug after I reloaded. Sorry for the needless comment.
ghishadow · 2022-04-16 03:09
using emacs-overlay to get emacsPgtkGcc it is awesome
[deleted] · 2022-04-16 03:32
[deleted]
noman_032018 · 2022-04-16 03:36
It's also not yet in Guix, at least for 28.1 (a patch is currently pending). `emacs-next` seems to package 28.0.50.
You might be able to port it from Guix's patches.
DrReadIt · 2022-04-16 04:38
I’m on 28, it’s right in the docs. Emacs has like 8 overlays, you need to include the overlays and then the rest is history. Works on both nixOS and macOS.
DrReadIt · 2022-04-16 04:39
This!
pwnedary · 2022-04-16 05:44
What do you mean no activity? A PR with emacs 28 was just merged to master.
stayclassytally · 2022-04-16 16:59
I believe it’s in flatwhatson if you want it
SickMoonDoe · 2022-04-16 17:01
I have been for years and I'm loving it
[deleted] · 2022-04-16 20:58
[deleted]
Psionikus · 2022-06-05 16:40
Did you use channels and leave an old channel branch configured? We're on release-22.05.