Skip to content

Commit a1b1e2d

Browse files
emacs: init emacs configuration
1 parent e65ccb8 commit a1b1e2d

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

machines/vm/shared.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@
135135

136136
# Enable configured sets of packages.
137137
conf = {
138+
emacs.enable = true;
138139
conky.enable = true;
139140
firefox.enable = true;
140141
fish.enable = true;

modules/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[
22
./conky
3+
./emacs
34
./firefox
45
./fish
56
./fonts

modules/emacs/default.nix

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
config,
3+
lib,
4+
pkgs,
5+
...
6+
}:
7+
8+
let
9+
cfg = config.conf.emacs;
10+
in
11+
{
12+
options.conf.emacs.enable = lib.mkEnableOption "emacs";
13+
config = lib.mkIf cfg.enable {
14+
services.emacs = {
15+
enable = true;
16+
package = pkgs.emacs.pkgs.withPackages (
17+
epkgs: with epkgs; [
18+
solarized-theme
19+
]
20+
);
21+
};
22+
};
23+
}

0 commit comments

Comments
 (0)