let the intrusive thoughts win

This commit is contained in:
Sakooooo 2023-09-04 12:59:43 +04:00
parent 5f51476548
commit a4628dcf99
Signed by: sako
GPG key ID: 3FD715D87D7725E0
4 changed files with 26 additions and 0 deletions

0
config/emacs/.gitkeep Normal file
View file

View file

@ -72,6 +72,7 @@
dev = {
editors = {
nvim.enable = true;
emacs.enable = true;
};
nil.enable = true;
cc.enable = true;

View file

@ -2,5 +2,6 @@
imports = [
./nvim
./vscode
./emacs
];
}

View 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;
};
};
}