let the intrusive thoughts win
This commit is contained in:
parent
5f51476548
commit
a4628dcf99
4 changed files with 26 additions and 0 deletions
0
config/emacs/.gitkeep
Normal file
0
config/emacs/.gitkeep
Normal file
|
@ -72,6 +72,7 @@
|
|||
dev = {
|
||||
editors = {
|
||||
nvim.enable = true;
|
||||
emacs.enable = true;
|
||||
};
|
||||
nil.enable = true;
|
||||
cc.enable = true;
|
||||
|
|
|
@ -2,5 +2,6 @@
|
|||
imports = [
|
||||
./nvim
|
||||
./vscode
|
||||
./emacs
|
||||
];
|
||||
}
|
||||
|
|
24
modules/dev/editors/emacs/default.nix
Normal file
24
modules/dev/editors/emacs/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ outputs, options, config, lib, pkgs, ...}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.dev.editors.emacs;
|
||||
in
|
||||
{
|
||||
options.modules.dev.editors.emacs = {
|
||||
enable = mkEnableOption false;
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
users.users.sako.packages = with pkgs; [
|
||||
# bro
|
||||
direnv
|
||||
# oh my days
|
||||
emacs
|
||||
];
|
||||
home-manager.users.sako.home.file.".emacs.d" = {
|
||||
enabled = true;
|
||||
source = ../../../../config/emacs;
|
||||
recursive = true;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue