feat: Update to latest nix

This commit is contained in:
uttarayan21
2024-08-30 15:10:10 +05:30
parent 3ab509a81c
commit 9a08453063
3 changed files with 282 additions and 282 deletions

View File

@@ -309,7 +309,7 @@ in {
file = "Catppuccin Mocha.tmTheme";
};
};
extraPackages = with pkgs.bat-extras; [batdiff batman batgrep batwatch];
extraPackages = with pkgs.bat-extras; [batman batgrep batwatch];
};
# Only for checking markdown previews

116
flake.lock generated
View File

@@ -994,11 +994,11 @@
]
},
"locked": {
"lastModified": 1722857853,
"narHash": "sha256-3Zx53oz/MSIyevuWO/SumxABkrIvojnB7g9cimxkhiE=",
"lastModified": 1724440431,
"narHash": "sha256-9etXEOUtzeMgqg1u0wp+EdwG7RpmrAZ2yX516bMj2aE=",
"owner": "cachix",
"repo": "git-hooks.nix",
"rev": "06939f6b7ec4d4f465bf3132a05367cccbbf64da",
"rev": "c8a54057aae480c56e28ef3e14e4960628ac495b",
"type": "github"
},
"original": {
@@ -1159,11 +1159,11 @@
]
},
"locked": {
"lastModified": 1723015306,
"narHash": "sha256-jQnFEtH20/OsDPpx71ntZzGdRlpXhUENSQCGTjn//NA=",
"lastModified": 1724435763,
"narHash": "sha256-UNky3lJNGQtUEXT2OY8gMxejakSWPTfWKvpFkpFlAfM=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "b3d5ea65d88d67d4ec578ed11d4d2d51e3de525e",
"rev": "c2cd2a52e02f1dfa1c88f95abeb89298d46023be",
"type": "github"
},
"original": {
@@ -1202,11 +1202,11 @@
]
},
"locked": {
"lastModified": 1722630065,
"narHash": "sha256-QfM/9BMRkCmgWzrPDK+KbgJOUlSJnfX4OvsUupEUZvA=",
"lastModified": 1724435763,
"narHash": "sha256-UNky3lJNGQtUEXT2OY8gMxejakSWPTfWKvpFkpFlAfM=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "afc892db74d65042031a093adb6010c4c3378422",
"rev": "c2cd2a52e02f1dfa1c88f95abeb89298d46023be",
"type": "github"
},
"original": {
@@ -1367,11 +1367,11 @@
"systems": "systems_5"
},
"locked": {
"lastModified": 1722882121,
"narHash": "sha256-gr4mN6BYKqy9JDr/ygDlMGYvEYBCMTDDDVnGNp/EYuw=",
"lastModified": 1724235914,
"narHash": "sha256-QEVuZNXkytS1lqAtRMBAriJREcCTOeprxBTisXxpe3s=",
"owner": "hyprwm",
"repo": "hyprlock",
"rev": "9393a3e94d837229714e28041427709756033f5a",
"rev": "7bb4113a7e9cb62120e96d7c81066f0c055f0db4",
"type": "github"
},
"original": {
@@ -1465,11 +1465,11 @@
"rust-overlay": "rust-overlay_3"
},
"locked": {
"lastModified": 1722868552,
"narHash": "sha256-tP0mOQlxotkJwmZa/ldwafNJoReeqivE7TtbPDSLSrE=",
"lastModified": 1724148415,
"narHash": "sha256-rwp6EY40+rXihPIszreCvxbowV6+/Am4J6BMekscgR4=",
"owner": "JakeStanger",
"repo": "ironbar",
"rev": "7de0412399bb7188f3c28cee257c6c85a4f10e8f",
"rev": "eff371ee086340c7c92f116604dbd613a9b4285c",
"type": "github"
},
"original": {
@@ -1514,11 +1514,11 @@
]
},
"locked": {
"lastModified": 1711550423,
"narHash": "sha256-CjTiUIZf8CK0keCNhADg+72ENpbgI63GLqoXO/DUDSI=",
"lastModified": 1724434153,
"narHash": "sha256-8C8uFnXSBalLD2MUgzzfg4ylvTVecyPJOSUri5jbvkM=",
"owner": "tsirysndr",
"repo": "music-player",
"rev": "2da6ea87848cbdc5e979b902cd83e4fce1cc153c",
"rev": "cf01ae4d2dcf5c804559250f2c7f922d870ae26d",
"type": "github"
},
"original": {
@@ -1534,11 +1534,11 @@
]
},
"locked": {
"lastModified": 1722809356,
"narHash": "sha256-xyNFsF+5cDjMlfbm7NMG33K+oej0T/Iosm3Nukp3+RU=",
"lastModified": 1724050807,
"narHash": "sha256-Mdmsb/zw3JjVxQKSdiN3wVFnrqT6gunbs2T4EkQxfAI=",
"owner": "musnix",
"repo": "musnix",
"rev": "a2f2e86026043977fdce30ac098a022a71b39392",
"rev": "b40964921d0f804f80480d050115bc089fe51128",
"type": "github"
},
"original": {
@@ -1687,7 +1687,7 @@
},
"locked": {
"lastModified": 1,
"narHash": "sha256-497l3zo03vUgp/9lBZfaI97UJzc/4+kByKW3j4TD29s=",
"narHash": "sha256-ty+HIRWkcVfMKJHBP8qDiA0mHSbq7dhKhFk6h57H4pc=",
"path": "./neovim",
"type": "path"
},
@@ -1741,11 +1741,11 @@
]
},
"locked": {
"lastModified": 1722924007,
"narHash": "sha256-+CQDamNwqO33REJLft8c26NbUi2Td083hq6SvAm2xkU=",
"lastModified": 1724561770,
"narHash": "sha256-zv8C9RNa86CIpyHwPIVO/k+5TfM8ZbjGwOOpTe1grls=",
"owner": "LnL7",
"repo": "nix-darwin",
"rev": "91010a5613ffd7ee23ee9263213157a1c422b705",
"rev": "ac5694a0b855a981e81b4d9f14052e3ff46ca39e",
"type": "github"
},
"original": {
@@ -1762,11 +1762,11 @@
]
},
"locked": {
"lastModified": 1722924007,
"narHash": "sha256-+CQDamNwqO33REJLft8c26NbUi2Td083hq6SvAm2xkU=",
"lastModified": 1724561770,
"narHash": "sha256-zv8C9RNa86CIpyHwPIVO/k+5TfM8ZbjGwOOpTe1grls=",
"owner": "lnl7",
"repo": "nix-darwin",
"rev": "91010a5613ffd7ee23ee9263213157a1c422b705",
"rev": "ac5694a0b855a981e81b4d9f14052e3ff46ca39e",
"type": "github"
},
"original": {
@@ -1780,11 +1780,11 @@
"nixpkgs": "nixpkgs_7"
},
"locked": {
"lastModified": 1722740924,
"narHash": "sha256-UQPgA5d8azLZuDHZMPmvDszhuKF1Ek89SrTRtqsQ4Ss=",
"lastModified": 1724576102,
"narHash": "sha256-uM7n5nNL6fmA0bwMJBNll11f4cMWOFa2Ni6F5KeIldM=",
"owner": "Mic92",
"repo": "nix-index-database",
"rev": "97ca0a0fca0391de835f57e44f369a283e37890f",
"rev": "e333d62b70b179da1dd78d94315e8a390f2d12e5",
"type": "github"
},
"original": {
@@ -1992,11 +1992,11 @@
},
"nixpkgs_7": {
"locked": {
"lastModified": 1722421184,
"narHash": "sha256-/DJBI6trCeVnasdjUo9pbnodCLZcFqnVZiLUfqLH4jA=",
"lastModified": 1724224976,
"narHash": "sha256-Z/ELQhrSd7bMzTO8r7NZgi9g5emh+aRKoCdaAv5fiO0=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "9f918d616c5321ad374ae6cb5ea89c9e04bf3e58",
"rev": "c374d94f1536013ca8e92341b540eba4c22f9c62",
"type": "github"
},
"original": {
@@ -2008,11 +2008,11 @@
},
"nixpkgs_8": {
"locked": {
"lastModified": 1722813957,
"narHash": "sha256-IAoYyYnED7P8zrBFMnmp7ydaJfwTnwcnqxUElC1I26Y=",
"lastModified": 1724479785,
"narHash": "sha256-pP3Azj5d6M5nmG68Fu4JqZmdGt4S4vqI5f8te+E/FTw=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "cb9a96f23c491c081b38eab96d22fa958043c9fa",
"rev": "d0e1602ddde669d5beb01aec49d71a51937ed7be",
"type": "github"
},
"original": {
@@ -2066,11 +2066,11 @@
"treefmt-nix": "treefmt-nix_3"
},
"locked": {
"lastModified": 1723064649,
"narHash": "sha256-J7p/kv0GHAnvg2HH3vJ3JVz1LEzCtdhcH0prmdYfRog=",
"lastModified": 1724710305,
"narHash": "sha256-qotbY/mgvykExLqRLAKN4yeufPfIjnMaK6hQQFhE2DE=",
"owner": "nix-community",
"repo": "nixvim",
"rev": "593f5215cb1df010451675c19f2ad5c5481ccee3",
"rev": "eac092c876e4c4861c6df0cff93e25b972b1842c",
"type": "github"
},
"original": {
@@ -2174,11 +2174,11 @@
},
"nur": {
"locked": {
"lastModified": 1723096977,
"narHash": "sha256-/OFbSpsjIl+b5ECPKz7anD/Q8EGFCOIjG9w9NIV61Gk=",
"lastModified": 1724738134,
"narHash": "sha256-y87Sad5b2k0S4E8pIUlFP3zkzgS4MWu6kC4pmAeMpO8=",
"owner": "nix-community",
"repo": "nur",
"rev": "27f59822c315763c64b55fb12f862a54df79b929",
"rev": "52d1ce4e4b0588d7bbff6657e2da1acd335b24a7",
"type": "github"
},
"original": {
@@ -2219,11 +2219,11 @@
]
},
"locked": {
"lastModified": 1722772237,
"narHash": "sha256-3eCYmzeLngX8eutIsTZAG8DIvT/0DWQQxiszTQz8n0s=",
"lastModified": 1724584782,
"narHash": "sha256-7FfHv7b1jwMPSu9SPY9hdxStk8E6EeSwzqdvV69U4BM=",
"owner": "NuschtOS",
"repo": "search",
"rev": "aa5f6246565cc9b1e697d2c9d6ed2c842b17fff6",
"rev": "5a08d691de30b6fc28d58ce71a5e420f2694e087",
"type": "github"
},
"original": {
@@ -2486,11 +2486,11 @@
]
},
"locked": {
"lastModified": 1723083652,
"narHash": "sha256-ait+SeO67n8b3lIaBWwuzVX6F1zyTJ0cY6cHWtvhTyc=",
"lastModified": 1724725307,
"narHash": "sha256-gnu8JrUFQoy7b927EPuwmWpvk8MSroFl07pplmVueYA=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "69e0ad9289fc08ee5a313fb107f00e0f21e7cbb2",
"rev": "f56076b216c266cd855b0811ceb86802e834cdb9",
"type": "github"
},
"original": {
@@ -2507,11 +2507,11 @@
]
},
"locked": {
"lastModified": 1722997267,
"narHash": "sha256-8Pncp8IKd0f0N711CRrCGTC4iLfBE+/5kaMqyWxnYic=",
"lastModified": 1723774846,
"narHash": "sha256-m53hVat6XXiKooV1oUDEMnPcdNKqSn/kAW+g8juSq84=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "d720bf3cebac38c2426d77ee2e59943012854cb8",
"rev": "519f4892641bc04a6ac7c2d260cc68356f9ae90f",
"type": "github"
},
"original": {
@@ -2833,11 +2833,11 @@
]
},
"locked": {
"lastModified": 1722330636,
"narHash": "sha256-uru7JzOa33YlSRwf9sfXpJG+UAV+bnBEYMjrzKrQZFw=",
"lastModified": 1724338379,
"narHash": "sha256-kKJtaiU5Ou+e/0Qs7SICXF22DLx4V/WhG1P6+k4yeOE=",
"owner": "numtide",
"repo": "treefmt-nix",
"rev": "768acdb06968e53aa1ee8de207fd955335c754b7",
"rev": "070f834771efa715f3e74cd8ab93ecc96fabc951",
"type": "github"
},
"original": {
@@ -2886,11 +2886,11 @@
"rust-overlay": "rust-overlay_7"
},
"locked": {
"lastModified": 1723031177,
"narHash": "sha256-bjiFmTOpd42a15NTtn8taQxUzCD+7+XbR+HklijsVO4=",
"lastModified": 1723818372,
"narHash": "sha256-dxRAONapqZRIlNfDyh/RVh011pdklBEDr92OsJizkAA=",
"owner": "dj95",
"repo": "zjstatus",
"rev": "e1e3b566268fbf6c80d6544f38b06368d23b4b46",
"rev": "671e0d12737cd8b269ca4408cfc67295ad3760b7",
"type": "github"
},
"original": {

View File

@@ -245,7 +245,7 @@ in rec {
html.enable = true;
ast-grep.enable = true;
# pylyzer.enable = true;
rust-analyzer.enable = false;
# rust-analyzer.enable = false;
};
onAttach =
/*
@@ -428,19 +428,19 @@ in rec {
end
end
do
function setup()
require'neotest'.setup({
adapters = {
require('rustaceanvim.neotest'),
}
})
end
success, output = pcall(setup)
if not success then
print("Failed to setup neotest: " .. output)
end
end
-- do
-- function setup()
-- require'neotest'.setup({
-- adapters = {
-- require('rustaceanvim.neotest'),
-- }
-- })
-- end
-- success, output = pcall(setup)
-- if not success then
-- print("Failed to setup neotest: " .. output)
-- end
-- end
-- catcher(require('rest-nvim').setup)
@@ -524,7 +524,7 @@ in rec {
})
local dap = require'dap';
dap.configurations.rust = { rr_dap.get_rust_config() }
-- dap.configurations.rust = { rr_dap.get_rust_config() }
dap.configurations.cpp = { rr_dap.get_config() }
if not vim.g.neovide then
@@ -565,20 +565,20 @@ in rec {
require('lspconfig.ui.windows').default_options.border = 'single'
catcher(require('nvim_context_vt').setup)
catcher(function()
require('nvim-devdocs').setup({
ensure_installed = {"nix", "rust"},
float_win = {
relative = "editor",
height = 80,
width = 100,
border = "rounded",
},
after_open = function()
vim.o.conceallevel = 3
end,
})
end)
-- catcher(function()
-- require('nvim-devdocs').setup({
-- ensure_installed = {"nix", "rust"},
-- float_win = {
-- relative = "editor",
-- height = 80,
-- width = 100,
-- border = "rounded",
-- },
-- after_open = function()
-- vim.o.conceallevel = 3
-- end,
-- })
-- end)
vim.api.nvim_create_user_command('Reso',
function()
@@ -593,60 +593,60 @@ in rec {
{})
local iron = require("iron.core")
iron.setup({
config = {
-- Whether a repl should be discarded or not
scratch_repl = true,
-- Your repl definitions come here
repl_definition = {
sh = {
-- Can be a table or a function that
-- returns a table (see below)
command = {"${pkgs.zsh}/bin/zsh"}
},
sql = {
command = function(meta)
local db = os.getenv("DATABASE_PATH")
if db == nil then
return { '${pkgs.sqlite}/bin/sqlite3', ':memory:' }
else
return { '${pkgs.sqlite}/bin/sqlite3', db }
end
-- iron.setup({
-- config = {
-- -- Whether a repl should be discarded or not
-- scratch_repl = true,
-- -- Your repl definitions come here
-- repl_definition = {
-- sh = {
-- -- Can be a table or a function that
-- -- returns a table (see below)
-- command = {"${pkgs.zsh}/bin/zsh"}
-- },
-- sql = {
-- command = function(meta)
-- local db = os.getenv("DATABASE_PATH")
-- if db == nil then
-- return { '${pkgs.sqlite}/bin/sqlite3', ':memory:' }
-- else
-- return { '${pkgs.sqlite}/bin/sqlite3', db }
-- end
end
},
rust = {
command = {"${pkgs.evcxr}/bin/evcxr"}
},
},
-- How the repl window will be displayed
-- See below for more information
repl_open_cmd = require('iron.view').right(60),
},
-- Iron doesn't set keymaps by default anymore.
-- You can set them here or manually add keymaps to the functions in iron.core
keymaps = {
send_motion = "<space>sc",
visual_send = "<space>sc",
send_file = "<space>sf",
send_line = "<space>sl",
send_until_cursor = "<space>su",
send_mark = "<space>sm",
mark_motion = "<space>mc",
mark_visual = "<space>mc",
remove_mark = "<space>md",
cr = "<space>s<cr>",
interrupt = "<space>s<space>",
exit = "<space>sq",
clear = "<space>cl",
},
-- If the highlight is on, you can change how it looks
-- For the available options, check nvim_set_hl
highlight = {
italic = true
},
ignore_blank_lines = true, -- ignore blank lines when sending visual select lines
})
-- end
-- },
-- rust = {
-- command = {"${pkgs.evcxr}/bin/evcxr"}
-- },
-- },
-- -- How the repl window will be displayed
-- -- See below for more information
-- repl_open_cmd = require('iron.view').right(60),
-- },
-- -- Iron doesn't set keymaps by default anymore.
-- -- You can set them here or manually add keymaps to the functions in iron.core
-- keymaps = {
-- send_motion = "<space>sc",
-- visual_send = "<space>sc",
-- send_file = "<space>sf",
-- send_line = "<space>sl",
-- send_until_cursor = "<space>su",
-- send_mark = "<space>sm",
-- mark_motion = "<space>mc",
-- mark_visual = "<space>mc",
-- remove_mark = "<space>md",
-- cr = "<space>s<cr>",
-- interrupt = "<space>s<space>",
-- exit = "<space>sq",
-- clear = "<space>cl",
-- },
-- -- If the highlight is on, you can change how it looks
-- -- For the available options, check nvim_set_hl
-- highlight = {
-- italic = true
-- },
-- ignore_blank_lines = true, -- ignore blank lines when sending visual select lines
-- })
vim.filetype.add({
extension = {