base: Finally, some emacs on darwin (and some other stuff I guess)

This commit is contained in:
Charlotte Van Petegem 2024-07-19 11:03:21 +02:00
parent 5467282626
commit 15586a8f7c
81 changed files with 469 additions and 417 deletions

View file

@ -36,7 +36,22 @@ in
};
config = {
chvp.base.zfs.homeLinks = (lib.optional config.chvp.base.nix.enableDirenv { path = ".local/share/direnv"; type = "cache"; });
chvp.base = {
emacs.extraConfig = [
''
;; Nix syntax support
(use-package nix-mode
:mode "\\.nix\\'"
)
''
] ++ lib.optional config.chvp.base.nix.enableDirenv ''
;; Direnv integration in emacs.
(use-package direnv
:config (direnv-mode)
)
'';
zfs.homeLinks = (lib.optional config.chvp.base.nix.enableDirenv { path = ".local/share/direnv"; type = "cache"; });
};
nix = {
gc = {
automatic = true;