This is a Nix flake runs Emacs with Magit, a Git porcelain inside Emacs. It is inspired by magit-docker (or Dockerized Magit) but uses Nix instead of Docker.
This flake is supported on the following platforms:
- Linux: =x86_64-linux= and =aarch64-linux=
- MacOS: =aarch64-darwin= and =x86_64-darwin=
You also need Nix package manager, which you can install by following the instructions from here: https://nixos.org/download.html
This project is provided as a Nix flake, so you can run it directly without installation.
If you have already installed Nix with flakes enabled, you can start magit by running the following command inside a Git repository:
nix run github:akirak/nix-magit --no-write-lock-file
If you haven’t enabled flakes, you can temporarily enable the feature:
nix run github:akirak/nix-magit --no-write-lock-file \
--extra-experimental-features nix-command \
--extra-experimental-features flakes
There is also an evil version (i.e. vi keybindings):
nix run github:akirak/nix-magit#evil --no-write-lock-file
You could define an alias for the command:
alias magit='nix run github:akirak/nix-magit --no-write-lock-file'
MIT License