feat: adds lsp nix stuff and gpg stuff for config
All checks were successful
gitea-deepak/nixconf/pipeline/head This commit looks good

This commit is contained in:
2023-09-23 16:05:57 +00:00
parent 4af294b1e6
commit b7d9e0ba7e
4 changed files with 21 additions and 3 deletions

View File

@@ -12,6 +12,9 @@
pkgs.eza
pkgs.fd
pkgs.ripgrep
# lsps
pkgs.nil
] ++ pkgs.lib.optionals specialArgs.withGUI [
pkgs.discord
pkgs.obsidian
@@ -37,7 +40,7 @@
userName = "Deepak Mallubhotla";
userEmail = "dmallubhotla+github@gmail.com";
signing = {
key = "976F3357369149AB";
key = specialArgs.gitSigningKey;
signByDefault = true;
};
extraConfig = {
@@ -57,10 +60,14 @@
# plenary and stuff for telescope
plenary-nvim telescope-nvim telescope-file-browser-nvim
ctrlp-vim
# lsp stuff
nvim-lspconfig
];
extraConfig = ''
inoremap jj <Esc>
inoremap kk <Esc>
lua << EOF
require'lspconfig'.nil_ls.setup{}
'';
};

View File

@@ -11,6 +11,7 @@
home-manager.extraSpecialArgs = {
inherit mysd;
withGUI = true;
gitSigningKey = "976F3357369149AB";
};
home-manager.useGlobalPkgs = true;
home-manager.users.deepak = {
@@ -28,6 +29,7 @@
home-manager.extraSpecialArgs = {
inherit mysd;
withGUI = false;
gitSigningKey = "8F904A3FC7021497";
};
home-manager.useGlobalPkgs = true;
home-manager.users.deepak = {

View File

@@ -2,7 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{ pkgs, ... }:
let
custom-fonts = import ../../fonts { inherit pkgs; };

View File

@@ -1,4 +1,4 @@
{ lib, pkgs, config, modulesPath, ... }:
{ pkgs, modulesPath, ... }:
{
imports = [
@@ -49,8 +49,17 @@
wget
vim
git
pinentry
pinentry-curses
gnupg
];
programs.gnupg.agent = {
enable = true;
pinentryFlavor = "curses";
enableSSHSupport = true;
};
environment.variables = {
DPK_NIX_CONF_DIR = "/mnt/d/Projects/nixconf";
};