renamed some files and directories that had identical filenames. Altered some nixvim plugin options. Set up gpg signing for git commits.

This commit is contained in:
pagedmov
2024-11-10 02:57:08 -05:00
committed by pagedmov
parent 2a1ba18c09
commit 366a0c1175
15 changed files with 41 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
{ lib, config, username, ... }: {
{ lib, config, username, pkgs, ... }: {
options = {
movOpts.programConfigs.gitConfig.enable =
lib.mkEnableOption "enables my git configuration";
@@ -6,7 +6,12 @@
config = lib.mkIf config.movOpts.programConfigs.gitConfig.enable {
programs.git = {
enable = true;
userEmail = "${username}@gmail.com";
signing = {
gpgPath = "${pkgs.gnupg}/bin/gpg";
key = "76118C11E525D3D0CBCA0F6EB2A3D477E86843DB";
signByDefault = true;
};
userEmail = "kylerclay@proton.me";
userName = "${username}";
};
};

View File

@@ -1,6 +1,21 @@
{
programs.nixvim = {
keymaps = [
{
action = "<cmd>ChatGPTEditWithInstructions<CR>";
key = "!egpt";
mode = "n";
}
{
action = "<cmd>ChatGPTCompleteCode<CR>";
key = "!cgpt";
mode = "n";
}
{
action = "<cmd>ChatGPT<CR>";
key = "!gpt";
mode = "n";
}
{
action = "<cmd>lua vim.lsp.buf.code_action()<CR>";
key = "!ca";

View File

@@ -0,0 +1,8 @@
{
programs.nixvim.plugins.chatgpt = {
enable = true;
settings = {
api_key_cmd = "pass keys/openai/apikey";
};
};
}

View File

@@ -8,6 +8,7 @@
# ./coq.nix
./barbar.nix
./cmp.nix
./chatgpt.nix
./lsp.nix
./fidget.nix
./lualine.nix

View File

@@ -4,6 +4,7 @@
settings = {
virtual_text = { enable = true; };
autocmd.enabled = true;
sign.enabled = false;
};
};
}