mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-19 09:29:36 +01:00
tiding up
Signed-off-by: Stefan Ellmauthaler <stefan.ellmauthaler@tu-dresden.de>
This commit is contained in:
parent
6ae9e628fb
commit
e3930332a4
22
emacs.nix
22
emacs.nix
@ -1,22 +0,0 @@
|
|||||||
{ pkgs ? import <nixpkgs> {} }:
|
|
||||||
|
|
||||||
let
|
|
||||||
ellmauEmacs = (import <nixpkgs> {}).emacs;
|
|
||||||
emacsWithPackages = (pkgs.emacsPackagesGen ellmauEmacs).emacsWithPackages;
|
|
||||||
in
|
|
||||||
emacsWithPackages ( epkgs: (with epkgs.melpaStablePackages; [
|
|
||||||
beacon
|
|
||||||
]) ++ (with epkgs.melpaPackages; [
|
|
||||||
magit
|
|
||||||
nix-mode
|
|
||||||
ewal-spacemacs-themes
|
|
||||||
org-roam
|
|
||||||
rustic
|
|
||||||
company
|
|
||||||
projectile
|
|
||||||
lsp-mode
|
|
||||||
dap-mode
|
|
||||||
]) ++ (with epkgs.elpaPackages; [
|
|
||||||
auctex
|
|
||||||
]) ++ [
|
|
||||||
])
|
|
||||||
@ -1,47 +0,0 @@
|
|||||||
{ config, pkgs, ...}:
|
|
||||||
{
|
|
||||||
environment.systemPackages = [
|
|
||||||
(emacsWithPackagesFromUsePackage {
|
|
||||||
# Your Emacs config file. Org mode babel files are also
|
|
||||||
# supported.
|
|
||||||
# NB: Config files cannot contain unicode characters, since
|
|
||||||
# they're being parsed in nix, which lacks unicode
|
|
||||||
# support.
|
|
||||||
# config = ./emacs.org;
|
|
||||||
config = ./default.el;
|
|
||||||
|
|
||||||
# Package is optional, defaults to pkgs.emacs
|
|
||||||
#package = pkgs.emacs;
|
|
||||||
|
|
||||||
# By default emacsWithPackagesFromUsePackage will only pull in
|
|
||||||
# packages with `:ensure`, `:ensure t` or `:ensure <package name>`.
|
|
||||||
# Setting `alwaysEnsure` to `true` emulates `use-package-always-ensure`
|
|
||||||
# and pulls in all use-package references not explicitly disabled via
|
|
||||||
# `:ensure nil` or `:disabled`.
|
|
||||||
# Note that this is NOT recommended unless you've actually set
|
|
||||||
# `use-package-always-ensure` to `t` in your config.
|
|
||||||
#alwaysEnsure = true;
|
|
||||||
|
|
||||||
# For Org mode babel files, by default only code blocks with
|
|
||||||
# `:tangle yes` are considered. Setting `alwaysTangle` to `true`
|
|
||||||
# will include all code blocks missing the `:tangle` argument,
|
|
||||||
# defaulting it to `yes`.
|
|
||||||
# Note that this is NOT recommended unless you have something like
|
|
||||||
# `#+PROPERTY: header-args:emacs-lisp :tangle yes` in your config,
|
|
||||||
# which defaults `:tangle` to `yes`.
|
|
||||||
alwaysTangle = true;
|
|
||||||
|
|
||||||
# Optionally provide extra packages not in the configuration file.
|
|
||||||
extraEmacsPackages = epkgs: [
|
|
||||||
epkgs.cask
|
|
||||||
];
|
|
||||||
|
|
||||||
# Optionally override derivations.
|
|
||||||
override = epkgs: epkgs // {
|
|
||||||
weechat = epkgs.melpaPackages.weechat.overrideAttrs(old: {
|
|
||||||
patches = [ ./weechat-el.patch ];
|
|
||||||
});
|
|
||||||
};
|
|
||||||
})
|
|
||||||
];
|
|
||||||
}
|
|
||||||
Loading…
x
Reference in New Issue
Block a user