[feat] Add some patches

This commit is contained in:
uttarayan21
2024-03-17 22:04:46 +05:30
parent d1edabe192
commit 03aa7cafed
7 changed files with 2227 additions and 23 deletions

View File

@@ -1,4 +1,4 @@
{ pkgs, ... }: {
{ ... }: {
imports = [ ../modules/goread.nix ];
programs.goread = {
enable = true;

View File

@@ -10,9 +10,8 @@
home.packages = with pkgs;
[
russ
go
p7zip
picat
spotdl
davis

View File

@@ -43,6 +43,7 @@
# url = "github:nixneovim/nixneovim";
url = "github:uttarayan21/NixNeovim";
inputs.nixpkgs.follows = "nixpkgs";
# patches = [ ./patches/nixneovim.patch ];
};
# nixneovimplugins = {
# url = "github:NixNeovim/NixNeovimPlugins";

View File

@@ -167,6 +167,12 @@
hyprland.enable = true;
hyprland.xwayland.enable = true;
yubikey-touch-detector.enable = true;
steam = {
enable = true;
gamescopeSession.enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
};
};
security.rtkit.enable = true;

View File

@@ -74,26 +74,6 @@ let
src = picat-src;
cargoLock = { lockFile = "${picat-src}/Cargo.lock"; };
};
# russ =
# let
# src = final.pkgs.fetchFromGitHub {
# owner = "ckampfe";
# repo = "russ";
# rev = "master";
# sha256 = "sha256-WJ/arI1zwt5UJNxo3MowKxof4wjROhgoRcfEYqWkYB8";
# };
# cargoToml = builtins.fromTOML (builtins.readFile "${src}/Cargo.toml");
# in
# final.pkgs.rustPlatform.buildRustPackage rec {
# pname = cargoToml.package.name;
# version = cargoToml.package.version;
# inherit src;
# doCheck = false;
# cargoLock = { lockFile = "${src}/Cargo.lock"; };
# };
};
anyrun-overlay = final: prev: {
@@ -170,6 +150,13 @@ let
'';
});
# nixneovim = nixneovim.applyPatches {
# name = "nixneovim-patched";
# src = inputs.nixneovim;
# patches = [ ./patches/nixneovim.patch ];
# };
tree-sitter-grammars = (final: prev: {
tree-sitter-grammars = prev.tree-sitter-grammars // {
tree-sitter-just = final.pkgs.tree-sitter.buildGrammar {

2187
patches/anyrun.patch Normal file

File diff suppressed because it is too large Load Diff

24
patches/nixneovim.patch Normal file
View File

@@ -0,0 +1,24 @@
diff --git a/src/plugins/_lspconfig-modules/servers.nix b/src/plugins/_lspconfig-modules/servers.nix
index f553364..3f235e9 100644
--- a/src/plugins/_lspconfig-modules/servers.nix
+++ b/src/plugins/_lspconfig-modules/servers.nix
@@ -96,6 +96,9 @@ let
languages = "OCaml";
packages = [ pkgs.ocamlPackages.ocaml-lsp ];
};
+ pylyzer = {
+ languages = "Python";
+ };
pyright = {
languages = "Python";
};
@@ -119,6 +122,9 @@ let
else
[ python3Packages.ruff-lsp ];
};
+ sqls = {
+ languages = "SQL";
+ };
taplo = {
languages = "TOML";
packages = [ taplo ];