feat: adds lsp nix stuff and gpg stuff for config
All checks were successful
gitea-deepak/nixconf/pipeline/head This commit looks good
All checks were successful
gitea-deepak/nixconf/pipeline/head This commit looks good
This commit is contained in:
@@ -12,6 +12,9 @@
|
|||||||
pkgs.eza
|
pkgs.eza
|
||||||
pkgs.fd
|
pkgs.fd
|
||||||
pkgs.ripgrep
|
pkgs.ripgrep
|
||||||
|
|
||||||
|
# lsps
|
||||||
|
pkgs.nil
|
||||||
] ++ pkgs.lib.optionals specialArgs.withGUI [
|
] ++ pkgs.lib.optionals specialArgs.withGUI [
|
||||||
pkgs.discord
|
pkgs.discord
|
||||||
pkgs.obsidian
|
pkgs.obsidian
|
||||||
@@ -37,7 +40,7 @@
|
|||||||
userName = "Deepak Mallubhotla";
|
userName = "Deepak Mallubhotla";
|
||||||
userEmail = "dmallubhotla+github@gmail.com";
|
userEmail = "dmallubhotla+github@gmail.com";
|
||||||
signing = {
|
signing = {
|
||||||
key = "976F3357369149AB";
|
key = specialArgs.gitSigningKey;
|
||||||
signByDefault = true;
|
signByDefault = true;
|
||||||
};
|
};
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
@@ -57,10 +60,14 @@
|
|||||||
# plenary and stuff for telescope
|
# plenary and stuff for telescope
|
||||||
plenary-nvim telescope-nvim telescope-file-browser-nvim
|
plenary-nvim telescope-nvim telescope-file-browser-nvim
|
||||||
ctrlp-vim
|
ctrlp-vim
|
||||||
|
# lsp stuff
|
||||||
|
nvim-lspconfig
|
||||||
];
|
];
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
inoremap jj <Esc>
|
inoremap jj <Esc>
|
||||||
inoremap kk <Esc>
|
inoremap kk <Esc>
|
||||||
|
lua << EOF
|
||||||
|
require'lspconfig'.nil_ls.setup{}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
home-manager.extraSpecialArgs = {
|
home-manager.extraSpecialArgs = {
|
||||||
inherit mysd;
|
inherit mysd;
|
||||||
withGUI = true;
|
withGUI = true;
|
||||||
|
gitSigningKey = "976F3357369149AB";
|
||||||
};
|
};
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.users.deepak = {
|
home-manager.users.deepak = {
|
||||||
@@ -28,6 +29,7 @@
|
|||||||
home-manager.extraSpecialArgs = {
|
home-manager.extraSpecialArgs = {
|
||||||
inherit mysd;
|
inherit mysd;
|
||||||
withGUI = false;
|
withGUI = false;
|
||||||
|
gitSigningKey = "8F904A3FC7021497";
|
||||||
};
|
};
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.users.deepak = {
|
home-manager.users.deepak = {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# your system. Help is available in the configuration.nix(5) man page
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
|
||||||
{ config, pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
custom-fonts = import ../../fonts { inherit pkgs; };
|
custom-fonts = import ../../fonts { inherit pkgs; };
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ lib, pkgs, config, modulesPath, ... }:
|
{ pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
@@ -49,8 +49,17 @@
|
|||||||
wget
|
wget
|
||||||
vim
|
vim
|
||||||
git
|
git
|
||||||
|
pinentry
|
||||||
|
pinentry-curses
|
||||||
|
gnupg
|
||||||
];
|
];
|
||||||
|
|
||||||
|
programs.gnupg.agent = {
|
||||||
|
enable = true;
|
||||||
|
pinentryFlavor = "curses";
|
||||||
|
enableSSHSupport = true;
|
||||||
|
};
|
||||||
|
|
||||||
environment.variables = {
|
environment.variables = {
|
||||||
DPK_NIX_CONF_DIR = "/mnt/d/Projects/nixconf";
|
DPK_NIX_CONF_DIR = "/mnt/d/Projects/nixconf";
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user