modified home and neovim module

home explictly needed map wrapper (?) around the existing modules that
are needed
This commit is contained in:
Wyatt J. Miller 2024-09-14 12:56:44 -04:00
parent a518d73323
commit 41022a0ae3
2 changed files with 18 additions and 3 deletions

View File

@ -1,10 +1,18 @@
{ {
lib,
pkgs, pkgs,
userName, userName,
userEmail,
... ...
}: { }: let
# Have a file sturcture that holds all the configuration files that can't be configured by Nix
# or maybe I'm too lazy to do anything about it? I dunno
dirs = {
defaults = ../defaults;
};
in {
# Import sub modules # Import sub modules
imports = [ imports = map (module: import module {inherit lib pkgs dirs userName userEmail;}) [
./atuin.nix ./atuin.nix
./shell.nix ./shell.nix
./core.nix ./core.nix

View File

@ -1,7 +1,14 @@
{...}: { {dirs, ...}: {
programs.neovim = { programs.neovim = {
enable = true; enable = true;
defaultEditor = true; defaultEditor = true;
vimAlias = true; vimAlias = true;
}; };
xdg.configFile = {
nvim = {
onChange = "nvim --headless -c 'if exists(\":LuaCacheClear\") | :LuaCacheClear' +quitall";
source = dirs.defaults + /nvim;
};
};
} }