added emacs overlay

dev-docs
Moritz Böhme 2021-09-10 12:00:56 +00:00
parent c9c7590129
commit b85cfb9708
3 changed files with 62 additions and 7 deletions

View File

@ -1,5 +1,20 @@
{
"nodes": {
"emacs-overlay": {
"locked": {
"lastModified": 1631265331,
"narHash": "sha256-B7Z8pPFRGEEh+APOvneIHSLQk33QK9bh5l8gI9tSD74=",
"owner": "nix-community",
"repo": "emacs-overlay",
"rev": "2ff125e11371b88b1c4edeaa6f96355fbfee96da",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "emacs-overlay",
"type": "github"
}
},
"flake-utils": {
"locked": {
"lastModified": 1629481132,
@ -70,6 +85,7 @@
},
"root": {
"inputs": {
"emacs-overlay": "emacs-overlay",
"home-manager": "home-manager",
"nixpkgs": "nixpkgs",
"picom": "picom",

View File

@ -2,16 +2,18 @@
description = "My awesome system config";
inputs = {
nixpkgs.url = github:nixos/nixpkgs/release-21.05;
unstable.url = github:nixos/nixpkgs/nixos-unstable;
utils.url = github:gytis-ivaskevicius/flake-utils-plus/release-1.2.0-without-deprecated-code;
nixpkgs.url = "github:nixos/nixpkgs/release-21.05";
unstable.url = "github:nixos/nixpkgs/nixos-unstable";
utils.url = "github:gytis-ivaskevicius/flake-utils-plus/release-1.2.0-without-deprecated-code";
emacs-overlay.url = "github:nix-community/emacs-overlay";
home-manager = {
url = github:nix-community/home-manager/release-21.05;
url = "github:nix-community/home-manager/release-21.05";
inputs.nixpkgs.follows = "nixpkgs";
};
picom = {
url = github:jonaburg/picom;
url = "github:jonaburg/picom";
flake = false;
};
};

View File

@ -1,9 +1,11 @@
{ config, lib, pkgs, ... }:
{ config, lib, pkgs, inputs, ... }:
let
base = {
programs.emacs.enable = true;
programs.emacs.package = pkgs.emacsGit;
services.emacs.enable = true;
services.emacs.package = pkgs.emacsGit;
xdg = {
enable = true;
@ -24,8 +26,43 @@ let
};
};
};
home.packages = with pkgs; [
## Emacs itself
binutils # native-comp needs 'as', provided by this
# emacsPgtkGcc # 28 + pgtk + native-comp
# ((emacsPackagesNgGen emacsPgtkGcc).emacsWithPackages (epkgs: [
# epkgs.vterm
# ]))
## Doom dependencies
git
(ripgrep.override {withPCRE2 = true;})
gnutls # for TLS connectivity
## Optional dependencies
fd # faster projectile indexing
imagemagick # for image-dired
zstd # for undo-fu-session/undo-tree compression
## Module dependencies
# :checkers spell
(aspellWithDicts (ds: with ds; [
en en-computers en-science de
]))
# :checkers grammar
languagetool
# :tools lookup & :lang org +roam
sqlite
# :lang latex & :lang org (latex previews)
texlive.combined.scheme-medium
];
};
in
{
nixpkgs.overlays = [ inputs.emacs-overlay.overlay ];
fonts.fonts = [ pkgs.emacs-all-the-icons-fonts ];
home-manager.users.moritz = {...}: (base);
}