all: minor changes
Some checks failed
nix / check (push) Failing after 2m12s

This commit is contained in:
L-Nafaryus 2024-07-24 11:39:18 +05:00
parent 7c8f579ef9
commit 3e3bc38f99
Signed by: L-Nafaryus
GPG Key ID: 553C97999B363D38
8 changed files with 181 additions and 1289 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
templates/*/result*
templates/*/flake.lock
/result*
/repl*

1324
flake.lock

File diff suppressed because it is too large Load Diff

View File

@ -40,13 +40,23 @@
};
oscuro = {
url = "github:L-Nafaryus/oscuro";
inputs.bonfire.follows = "";
};
obs-image-reaction = {
url = "github:L-Nafaryus/obs-image-reaction";
};
nixvim = {
url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs";
inputs = {
nixpkgs.follows = "nixpkgs";
devshell.follows = "";
flake-compat.follows = "";
git-hooks.follows = "";
home-manager.follows = "";
nix-darwin.follows = "";
treefmt-nix.follows = "";
};
};
ags = {
url = "github:Aylur/ags";

View File

@ -48,6 +48,9 @@
smoothscroll = true;
autowrite = true;
pumblend = 10;
pumheight = 10;
};
globals = {
@ -65,11 +68,30 @@
# Copy/paste
plugins.yanky = {
enable = true;
systemClipboard.syncWithRing = true;
settings.system_clipboard.sync_with_ring = true;
};
extraPlugins = with pkgs.vimPlugins; [nvim-web-devicons];
diagnostics = {
underline = true;
update_in_insert = false;
# lsp diagnostics grouped in the end of file
virtual_text = {
spacing = 4;
source = "if_many";
prefix = "";
};
# lsp diagnostic lines disabled by default, toggle it for pretty lines
virtual_lines = false;
# sort diagnostic messages
severity_sort = true;
# hightlight word under cursor
document_highlight = {
enabled = true;
};
};
# Theme
colorschemes.catppuccin = {
enable = true;
@ -97,10 +119,10 @@
background = true;
};
underlines = {
errors = ["underline"];
hints = ["underline"];
information = ["underline"];
warnings = ["underline"];
errors = ["undercurl"];
hints = ["undercurl"];
information = ["undercurl"];
warnings = ["undercurl"];
};
};
};
@ -354,7 +376,7 @@
nil-ls.enable = true;
# pylyzer.enable = true; # not working with virtual environments currently :(
pylsp = {
enable = true;
enable = true; # https://github.com/nix-community/nixvim/pull/1893
settings.plugins = {
pyflakes.enabled = true;
black.enabled = true;
@ -367,6 +389,15 @@
rustcPackage = rustc;
installCargo = true;
installRustc = true;
settings = {
checkOnSave = true;
check.command = "clippy";
inlayHints = {
enable = true;
showParameterNames = true;
};
procMacro.enable = true;
};
};
volar.enable = true;
tailwindcss.enable = true;
@ -485,9 +516,71 @@
"<c-space>" = "cmp.mapping.complete()";
"<cr>" = "cmp.mapping.confirm({ behavior = cmp.ConfirmBehavior.Replace, select = true })";
"<tab>" = "cmp.mapping(cmp.mapping.confirm({ select = true }), { 'i', 's', 'c' })";
"<c-p>" = "cmp.mapping.select_prev_item()";
"<c-n>" = "cmp.mapping.select_next_item()";
"<up>" = "cmp.mapping.select_prev_item()";
"<down>" = "cmp.mapping.select_next_item()";
};
formatting.format = ''
function(entry, item)
local icons = {
Array = " ",
Boolean = "󰨙 ",
Class = " ",
Codeium = "󰘦 ",
Color = " ",
Control = " ",
Collapsed = " ",
Constant = "󰏿 ",
Constructor = " ",
Copilot = " ",
Enum = " ",
EnumMember = " ",
Event = " ",
Field = " ",
File = " ",
Folder = " ",
Function = "󰊕 ",
Interface = " ",
Key = " ",
Keyword = " ",
Method = "󰊕 ",
Module = " ",
Namespace = "󰦮 ",
Null = " ",
Number = "󰎠 ",
Object = " ",
Operator = " ",
Package = " ",
Property = " ",
Reference = " ",
Snippet = " ",
String = " ",
Struct = "󰆼 ",
TabNine = "󰏚 ",
Text = " ",
TypeParameter = " ",
Unit = " ",
Value = " ",
Variable = "󰀫 ",
}
if icons[item.kind] then
item.kind = icons[item.kind] .. item.kind
end
local widths = {
abbr = vim.g.cmp_widths and vim.g.cmp_widths.abbr or 40,
menu = vim.g.cmp_widths and vim.g.cmp_widths.menu or 30,
}
for key, width in pairs(widths) do
if item[key] and vim.fn.strdisplaywidth(item[key]) > width then
item[key] = vim.fn.strcharpart(item[key], 0, width - 1) .. ""
end
end
return item
end
'';
};
};
cmp-nvim-lsp.enable = true;

View File

@ -105,7 +105,16 @@
};
services.dbus.enable = true;
services.printing.enable = true;
services.printing = {
enable = true;
drivers = [pkgs.hplip];
};
services.avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true;
};
services.pipewire = {
enable = true;

View File

@ -179,8 +179,6 @@
pulseaudio.enable = false;
};
sound.enable = true;
networking = {
networkmanager.enable = true;
networkmanager.unmanaged = ["interface-name:ve-*"];

View File

@ -29,4 +29,9 @@ sudo nixos-rebuild switch --flake ".?submodules=1#astora"
nixos-rebuild switch --flake ".?submodules=1#catarina" --build-host l-nafaryus@astora --target-host l.nafaryus@catarina --use-remote-sudo
```
* How to repair corrupted links in nix-store:
```sh
nix-store --verify --check-contents --repair
```

View File

@ -10,9 +10,9 @@
pkgs = pkgs;
module = bonLib.preconfiguredModules.bonvim;
extraSpecialArgs = {
rustc = fenixPkgs.complete.rustc;
cargo = fenixPkgs.complete.cargo;
rust-analyzer = fenixPkgs.complete.rust-analyzer;
rustc = fenixPkgs.complete.toolchain;
cargo = fenixPkgs.complete.toolchain;
rust-analyzer = fenixPkgs.complete.toolchain;
};
};
in