added emacs overlay
This commit is contained in:
parent
c9c7590129
commit
b85cfb9708
3 changed files with 62 additions and 7 deletions
16
flake.lock
16
flake.lock
|
@ -1,5 +1,20 @@
|
||||||
{
|
{
|
||||||
"nodes": {
|
"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": {
|
"flake-utils": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1629481132,
|
"lastModified": 1629481132,
|
||||||
|
@ -70,6 +85,7 @@
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"emacs-overlay": "emacs-overlay",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"picom": "picom",
|
"picom": "picom",
|
||||||
|
|
14
flake.nix
14
flake.nix
|
@ -2,16 +2,18 @@
|
||||||
description = "My awesome system config";
|
description = "My awesome system config";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = github:nixos/nixpkgs/release-21.05;
|
nixpkgs.url = "github:nixos/nixpkgs/release-21.05";
|
||||||
unstable.url = github:nixos/nixpkgs/nixos-unstable;
|
unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
utils.url = github:gytis-ivaskevicius/flake-utils-plus/release-1.2.0-without-deprecated-code;
|
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 = {
|
home-manager = {
|
||||||
url = github:nix-community/home-manager/release-21.05;
|
url = "github:nix-community/home-manager/release-21.05";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
picom = {
|
picom = {
|
||||||
url = github:jonaburg/picom;
|
url = "github:jonaburg/picom";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, inputs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
base = {
|
base = {
|
||||||
programs.emacs.enable = true;
|
programs.emacs.enable = true;
|
||||||
|
programs.emacs.package = pkgs.emacsGit;
|
||||||
services.emacs.enable = true;
|
services.emacs.enable = true;
|
||||||
|
services.emacs.package = pkgs.emacsGit;
|
||||||
|
|
||||||
xdg = {
|
xdg = {
|
||||||
enable = true;
|
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
|
in
|
||||||
{
|
{
|
||||||
|
nixpkgs.overlays = [ inputs.emacs-overlay.overlay ];
|
||||||
|
|
||||||
|
fonts.fonts = [ pkgs.emacs-all-the-icons-fonts ];
|
||||||
|
|
||||||
home-manager.users.moritz = {...}: (base);
|
home-manager.users.moritz = {...}: (base);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue