modified home and neovim module
home explictly needed map wrapper (?) around the existing modules that are needed
This commit is contained in:
parent
a518d73323
commit
41022a0ae3
@ -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
|
||||||
|
@ -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;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user