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/*/result*
templates/*/flake.lock templates/*/flake.lock
/result* /result*
/repl*

1324
flake.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -40,13 +40,23 @@
}; };
oscuro = { oscuro = {
url = "github:L-Nafaryus/oscuro"; url = "github:L-Nafaryus/oscuro";
inputs.bonfire.follows = "";
}; };
obs-image-reaction = { obs-image-reaction = {
url = "github:L-Nafaryus/obs-image-reaction"; url = "github:L-Nafaryus/obs-image-reaction";
}; };
nixvim = { nixvim = {
url = "github:nix-community/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 = { ags = {
url = "github:Aylur/ags"; url = "github:Aylur/ags";

View File

@ -48,6 +48,9 @@
smoothscroll = true; smoothscroll = true;
autowrite = true; autowrite = true;
pumblend = 10;
pumheight = 10;
}; };
globals = { globals = {
@ -65,11 +68,30 @@
# Copy/paste # Copy/paste
plugins.yanky = { plugins.yanky = {
enable = true; enable = true;
systemClipboard.syncWithRing = true; settings.system_clipboard.sync_with_ring = true;
}; };
extraPlugins = with pkgs.vimPlugins; [nvim-web-devicons]; 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 # Theme
colorschemes.catppuccin = { colorschemes.catppuccin = {
enable = true; enable = true;
@ -97,10 +119,10 @@
background = true; background = true;
}; };
underlines = { underlines = {
errors = ["underline"]; errors = ["undercurl"];
hints = ["underline"]; hints = ["undercurl"];
information = ["underline"]; information = ["undercurl"];
warnings = ["underline"]; warnings = ["undercurl"];
}; };
}; };
}; };
@ -354,7 +376,7 @@
nil-ls.enable = true; nil-ls.enable = true;
# pylyzer.enable = true; # not working with virtual environments currently :( # pylyzer.enable = true; # not working with virtual environments currently :(
pylsp = { pylsp = {
enable = true; enable = true; # https://github.com/nix-community/nixvim/pull/1893
settings.plugins = { settings.plugins = {
pyflakes.enabled = true; pyflakes.enabled = true;
black.enabled = true; black.enabled = true;
@ -367,6 +389,15 @@
rustcPackage = rustc; rustcPackage = rustc;
installCargo = true; installCargo = true;
installRustc = true; installRustc = true;
settings = {
checkOnSave = true;
check.command = "clippy";
inlayHints = {
enable = true;
showParameterNames = true;
};
procMacro.enable = true;
};
}; };
volar.enable = true; volar.enable = true;
tailwindcss.enable = true; tailwindcss.enable = true;
@ -485,9 +516,71 @@
"<c-space>" = "cmp.mapping.complete()"; "<c-space>" = "cmp.mapping.complete()";
"<cr>" = "cmp.mapping.confirm({ behavior = cmp.ConfirmBehavior.Replace, select = true })"; "<cr>" = "cmp.mapping.confirm({ behavior = cmp.ConfirmBehavior.Replace, select = true })";
"<tab>" = "cmp.mapping(cmp.mapping.confirm({ select = true }), { 'i', 's', 'c' })"; "<tab>" = "cmp.mapping(cmp.mapping.confirm({ select = true }), { 'i', 's', 'c' })";
"<c-p>" = "cmp.mapping.select_prev_item()"; "<up>" = "cmp.mapping.select_prev_item()";
"<c-n>" = "cmp.mapping.select_next_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; cmp-nvim-lsp.enable = true;

View File

@ -105,7 +105,16 @@
}; };
services.dbus.enable = true; 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 = { services.pipewire = {
enable = true; enable = true;

View File

@ -179,8 +179,6 @@
pulseaudio.enable = false; pulseaudio.enable = false;
}; };
sound.enable = true;
networking = { networking = {
networkmanager.enable = true; networkmanager.enable = true;
networkmanager.unmanaged = ["interface-name:ve-*"]; 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 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; pkgs = pkgs;
module = bonLib.preconfiguredModules.bonvim; module = bonLib.preconfiguredModules.bonvim;
extraSpecialArgs = { extraSpecialArgs = {
rustc = fenixPkgs.complete.rustc; rustc = fenixPkgs.complete.toolchain;
cargo = fenixPkgs.complete.cargo; cargo = fenixPkgs.complete.toolchain;
rust-analyzer = fenixPkgs.complete.rust-analyzer; rust-analyzer = fenixPkgs.complete.toolchain;
}; };
}; };
in in