feat: some neovim customizaion
This commit is contained in:
parent
e2fab632ef
commit
39643701c8
10 changed files with 263 additions and 66 deletions
|
|
@ -1,8 +1,8 @@
|
|||
{...}:
|
||||
{
|
||||
{...}: {
|
||||
imports = [
|
||||
./fish.nix
|
||||
./nginx.nix
|
||||
./tmux.nix
|
||||
./nvim.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,4 +30,3 @@
|
|||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
2
modules/minecraft.nix
Normal file
2
modules/minecraft.nix
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
{...}: {
|
||||
}
|
||||
|
|
@ -1,19 +1,18 @@
|
|||
{...}:
|
||||
{
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
user = "prever";
|
||||
group = "users";
|
||||
{...}: {
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
user = "prever";
|
||||
group = "users";
|
||||
|
||||
virtualHosts."yelbakri.dev" = {
|
||||
addSSL = true;
|
||||
enableACME = true;
|
||||
root = "/var/www";
|
||||
};
|
||||
};
|
||||
virtualHosts."yelbakri.dev" = {
|
||||
addSSL = true;
|
||||
enableACME = true;
|
||||
root = "/var/www";
|
||||
};
|
||||
};
|
||||
|
||||
security.acme = {
|
||||
acceptTerms = true;
|
||||
defaults.email = "yousefelbakri09@gmail.com";
|
||||
};
|
||||
security.acme = {
|
||||
acceptTerms = true;
|
||||
defaults.email = "yousefelbakri09@gmail.com";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
43
modules/nvim.nix
Normal file
43
modules/nvim.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{pkgs, ...}: {
|
||||
programs.nixvim = {
|
||||
enable = true;
|
||||
globals.mapleader = " ";
|
||||
|
||||
opts = {
|
||||
relativenumber = true;
|
||||
};
|
||||
|
||||
colorschemes.ayu.enable = true;
|
||||
|
||||
autoCmd = [
|
||||
{
|
||||
event = "BufWritePre";
|
||||
pattern = "*.nix";
|
||||
callback = {
|
||||
__raw = "function(args) require('conform').format({ bufnr = args.buf }) end";
|
||||
};
|
||||
}
|
||||
];
|
||||
|
||||
plugins.nix.enable = true;
|
||||
plugins.treesitter.enable = true;
|
||||
plugins.lspconfig.enable = true;
|
||||
plugins.blink-cmp.enable = true;
|
||||
plugins.telescope.enable = true;
|
||||
|
||||
plugins.conform-nvim = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
formatters_by_ft = {
|
||||
nix = ["alejandra"];
|
||||
};
|
||||
};
|
||||
};
|
||||
lsp.servers.nil_ls.enable = true;
|
||||
};
|
||||
|
||||
users.users.prever.packages = [
|
||||
pkgs.alejandra
|
||||
];
|
||||
}
|
||||
|
|
@ -1,10 +1,13 @@
|
|||
{...}:
|
||||
{
|
||||
home-manager.users.perver = {
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
newSession = true;
|
||||
shell = "fish";
|
||||
};
|
||||
};
|
||||
{pkgs, ...}: {
|
||||
home-manager.users.prever = {
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
newSession = true;
|
||||
shell = "${pkgs.fish}/bin/fish";
|
||||
|
||||
plugins = with pkgs.tmuxPlugins; [
|
||||
gruvbox
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue