mirror of
https://github.com/srid/nixos-config.git
synced 2026-02-03 19:48:24 +08:00
22 lines
411 B
Nix
22 lines
411 B
Nix
{ pkgs, inputs, ... }:
|
|
let
|
|
# emacs = pkgs.emacsUnstable;
|
|
emacs = pkgs.emacs;
|
|
in
|
|
{
|
|
nixpkgs.overlays = [ inputs.emacs-overlay.overlay ];
|
|
environment.systemPackages = [
|
|
emacs
|
|
|
|
(pkgs.writeScriptBin "em"
|
|
''
|
|
#!${pkgs.runtimeShell}
|
|
set -xe
|
|
TERM=xterm-direct exec ${emacs}/bin/emacs -nw $*
|
|
'')
|
|
];
|
|
|
|
fonts.fonts = with pkgs; [
|
|
emacs-all-the-icons-fonts
|
|
];
|
|
}
|