Merge remote-tracking branch 'origin/master' into nixos-snapshot-09092024

This commit is contained in:
2024-09-14 15:31:49 -04:00
19 changed files with 616 additions and 3 deletions

View File

@ -1,10 +1,18 @@
{
lib,
pkgs,
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
imports = [
imports = map (module: import module {inherit lib pkgs dirs userName userEmail;}) [
./atuin.nix
./shell.nix
./core.nix

View File

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