Compare commits

..

1 Commits

Author SHA1 Message Date
dichgrem
8650ac8879 fix:switch.sh&&mysql 2025-12-04 18:47:47 +08:00
15 changed files with 537 additions and 189 deletions

411
flake.lock generated
View File

@@ -21,17 +21,17 @@
"base16-fish": { "base16-fish": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1765809053, "lastModified": 1754405784,
"narHash": "sha256-XCUQLoLfBJ8saWms2HCIj4NEN+xNsWBlU1NrEPcQG4s=", "narHash": "sha256-l9xHIy+85FN+bEo6yquq2IjD1rSg9fjfjpyGP1W8YXo=",
"owner": "tomyun", "owner": "tomyun",
"repo": "base16-fish", "repo": "base16-fish",
"rev": "86cbea4dca62e08fb7fd83a70e96472f92574782", "rev": "23ae20a0093dca0d7b39d76ba2401af0ccf9c561",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "tomyun", "owner": "tomyun",
"repo": "base16-fish", "repo": "base16-fish",
"rev": "86cbea4dca62e08fb7fd83a70e96472f92574782", "rev": "23ae20a0093dca0d7b39d76ba2401af0ccf9c561",
"type": "github" "type": "github"
} }
}, },
@@ -68,6 +68,48 @@
"type": "github" "type": "github"
} }
}, },
"chaotic": {
"inputs": {
"flake-schemas": "flake-schemas",
"home-manager": "home-manager",
"jovian": "jovian",
"nixpkgs": "nixpkgs",
"rust-overlay": "rust-overlay"
},
"locked": {
"lastModified": 1764720660,
"narHash": "sha256-zrU6DwLb5zXCg6JxfVJyNCJex0LjuTUXchotq44Vn+w=",
"owner": "chaotic-cx",
"repo": "nyx",
"rev": "1739cb8049b3184496279dc6a272b56d466ddd58",
"type": "github"
},
"original": {
"owner": "chaotic-cx",
"ref": "nyxpkgs-unstable",
"repo": "nyx",
"type": "github"
}
},
"daeuniverse": {
"inputs": {
"flake-parts": "flake-parts",
"nixpkgs": "nixpkgs_2"
},
"locked": {
"lastModified": 1762203410,
"narHash": "sha256-+WqPI5Il43oI2/TMUrZUzzReLW/dnWM6GNqrekDXgos=",
"owner": "daeuniverse",
"repo": "flake.nix",
"rev": "effa0f113add0f982a657f5bce92bac503b542b6",
"type": "github"
},
"original": {
"owner": "daeuniverse",
"repo": "flake.nix",
"type": "github"
}
},
"disko": { "disko": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@@ -75,11 +117,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1765794845, "lastModified": 1764627417,
"narHash": "sha256-YD5QWlGnusNbZCqR3pxG8tRxx9yUXayLZfAJRWspq2s=", "narHash": "sha256-D6xc3Rl8Ab6wucJWdvjNsGYGSxNjQHzRc2EZ6eeQ6l4=",
"owner": "nix-community", "owner": "nix-community",
"repo": "disko", "repo": "disko",
"rev": "7194cfe5b7a3660726b0fe7296070eaef601cae9", "rev": "5a88a6eceb8fd732b983e72b732f6f4b8269bef3",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -105,6 +147,45 @@
} }
}, },
"flake-parts": { "flake-parts": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib"
},
"locked": {
"lastModified": 1738453229,
"narHash": "sha256-7H9XgNiGLKN1G1CgRh0vUL4AheZSYzPm+zmZ7vxbJdo=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "32ea77a06711b758da0ad9bd6a844c5740a87abd",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-parts_2": {
"inputs": {
"nixpkgs-lib": [
"nixvim",
"nixpkgs"
]
},
"locked": {
"lastModified": 1763759067,
"narHash": "sha256-LlLt2Jo/gMNYAwOgdRQBrsRoOz7BPRkzvNaI/fzXi2Q=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "2cccadc7357c0ba201788ae99c4dfa90728ef5e0",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-parts_3": {
"inputs": { "inputs": {
"nixpkgs-lib": [ "nixpkgs-lib": [
"stylix", "stylix",
@@ -125,6 +206,38 @@
"type": "github" "type": "github"
} }
}, },
"flake-schemas": {
"locked": {
"lastModified": 1721999734,
"narHash": "sha256-G5CxYeJVm4lcEtaO87LKzOsVnWeTcHGKbKxNamNWgOw=",
"rev": "0a5c42297d870156d9c57d8f99e476b738dcd982",
"revCount": 75,
"type": "tarball",
"url": "https://api.flakehub.com/f/pinned/DeterminateSystems/flake-schemas/0.1.5/0190ef2f-61e0-794b-ba14-e82f225e55e6/source.tar.gz"
},
"original": {
"type": "tarball",
"url": "https://flakehub.com/f/DeterminateSystems/flake-schemas/%3D0.1.5.tar.gz"
}
},
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"fromYaml": { "fromYaml": {
"flake": false, "flake": false,
"locked": { "locked": {
@@ -163,15 +276,16 @@
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"chaotic",
"nixpkgs" "nixpkgs"
] ]
}, },
"locked": { "locked": {
"lastModified": 1765980955, "lastModified": 1764636297,
"narHash": "sha256-rB45jv4uwC90vM9UZ70plfvY/2Kdygs+zlQ07dGQFk4=", "narHash": "sha256-S41K55kw+hWgDfgKmZ9/fMZ3F0BQDMvqFfE120fMHeE=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "89c9508bbe9b40d36b3dc206c2483ef176f15173", "rev": "ff067cfc619fdf6f82d50344e7d19ff2323f0827",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -180,13 +294,150 @@
"type": "github" "type": "github"
} }
}, },
"home-manager_2": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1764788330,
"narHash": "sha256-hE/gXK+Z0j654T0tsW+KcndRqsgZXe8HyWchjBJgQpw=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "fca4cba863e76c26cfe48e5903c2ff4bac2b2d5d",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "home-manager",
"type": "github"
}
},
"ixx": {
"inputs": {
"flake-utils": [
"nixvim",
"nuschtosSearch",
"flake-utils"
],
"nixpkgs": [
"nixvim",
"nuschtosSearch",
"nixpkgs"
]
},
"locked": {
"lastModified": 1754860581,
"narHash": "sha256-EM0IE63OHxXCOpDHXaTyHIOk2cNvMCGPqLt/IdtVxgk=",
"owner": "NuschtOS",
"repo": "ixx",
"rev": "babfe85a876162c4acc9ab6fb4483df88fa1f281",
"type": "github"
},
"original": {
"owner": "NuschtOS",
"ref": "v0.1.1",
"repo": "ixx",
"type": "github"
}
},
"jovian": {
"inputs": {
"nix-github-actions": "nix-github-actions",
"nixpkgs": [
"chaotic",
"nixpkgs"
]
},
"locked": {
"lastModified": 1764655750,
"narHash": "sha256-tBrcUSu/47u+E+81SUVUpXrqhkcM3Xqg/4taWFI/99k=",
"owner": "Jovian-Experiments",
"repo": "Jovian-NixOS",
"rev": "1127a4fc66425cceae683becb93f038819cf2633",
"type": "github"
},
"original": {
"owner": "Jovian-Experiments",
"repo": "Jovian-NixOS",
"type": "github"
}
},
"nix-github-actions": {
"inputs": {
"nixpkgs": [
"chaotic",
"jovian",
"nixpkgs"
]
},
"locked": {
"lastModified": 1729697500,
"narHash": "sha256-VFTWrbzDlZyFHHb1AlKRiD/qqCJIripXKiCSFS8fAOY=",
"owner": "zhaofengli",
"repo": "nix-github-actions",
"rev": "e418aeb728b6aa5ca8c5c71974e7159c2df1d8cf",
"type": "github"
},
"original": {
"owner": "zhaofengli",
"ref": "matrix-name",
"repo": "nix-github-actions",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1765779637, "lastModified": 1764517877,
"narHash": "sha256-KJ2wa/BLSrTqDjbfyNx70ov/HdgNBCBBSQP3BIzKnv4=", "narHash": "sha256-pp3uT4hHijIC8JUK5MEqeAWmParJrgBVzHLNfJDZxg4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "2d293cbfa5a793b4c50d17c05ef9e385b90edf6c",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-lib": {
"locked": {
"lastModified": 1738452942,
"narHash": "sha256-vJzFZGaCpnmo7I6i416HaBLpC+hvcURh/BQwROcGIp8=",
"type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/072a6db25e947df2f31aab9eccd0ab75d5b2da11.tar.gz"
},
"original": {
"type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/072a6db25e947df2f31aab9eccd0ab75d5b2da11.tar.gz"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1739866667,
"narHash": "sha256-EO1ygNKZlsAC9avfcwHkKGMsmipUk1Uc0TbrEZpkn64=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "73cf49b8ad837ade2de76f87eb53fc85ed5d4680",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_3": {
"locked": {
"lastModified": 1764667669,
"narHash": "sha256-7WUCZfmqLAssbDqwg9cUDAXrSoXN79eEEq17qhTNM/Y=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "1306659b587dc277866c7b69eb97e5f07864d8c4", "rev": "418468ac9527e799809c900eda37cbff999199b6",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -196,6 +447,45 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_4": {
"locked": {
"lastModified": 1764517877,
"narHash": "sha256-pp3uT4hHijIC8JUK5MEqeAWmParJrgBVzHLNfJDZxg4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "2d293cbfa5a793b4c50d17c05ef9e385b90edf6c",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixvim": {
"inputs": {
"flake-parts": "flake-parts_2",
"nixpkgs": [
"nixpkgs"
],
"nuschtosSearch": "nuschtosSearch",
"systems": "systems_2"
},
"locked": {
"lastModified": 1764803799,
"narHash": "sha256-94SMf4Uw5iSoX37ui6LAdcadCUHUDfrvggGay0uWkis=",
"owner": "nix-community",
"repo": "nixvim",
"rev": "5d1c27e53c96e2c94e69f2e2d083ef147b3a3ccb",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixvim",
"type": "github"
}
},
"nur": { "nur": {
"inputs": { "inputs": {
"flake-parts": [ "flake-parts": [
@@ -221,14 +511,61 @@
"type": "github" "type": "github"
} }
}, },
"nuschtosSearch": {
"inputs": {
"flake-utils": "flake-utils",
"ixx": "ixx",
"nixpkgs": [
"nixvim",
"nixpkgs"
]
},
"locked": {
"lastModified": 1761730856,
"narHash": "sha256-t1i5p/vSWwueZSC0Z2BImxx3BjoUDNKyC2mk24krcMY=",
"owner": "NuschtOS",
"repo": "search",
"rev": "e29de6db0cb3182e9aee75a3b1fd1919d995d85b",
"type": "github"
},
"original": {
"owner": "NuschtOS",
"repo": "search",
"type": "github"
}
},
"root": { "root": {
"inputs": { "inputs": {
"chaotic": "chaotic",
"daeuniverse": "daeuniverse",
"disko": "disko", "disko": "disko",
"home-manager": "home-manager", "home-manager": "home-manager_2",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs_3",
"nixvim": "nixvim",
"stylix": "stylix" "stylix": "stylix"
} }
}, },
"rust-overlay": {
"inputs": {
"nixpkgs": [
"chaotic",
"nixpkgs"
]
},
"locked": {
"lastModified": 1764643237,
"narHash": "sha256-6Ezx9DqVv5UZ7DBK9rcNwBuQUENFyWPS7M09I+FvNao=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "e66d6b924ac59e6c722f69332f6540ea57c69233",
"type": "github"
},
"original": {
"owner": "oxalica",
"repo": "rust-overlay",
"type": "github"
}
},
"stylix": { "stylix": {
"inputs": { "inputs": {
"base16": "base16", "base16": "base16",
@@ -236,13 +573,11 @@
"base16-helix": "base16-helix", "base16-helix": "base16-helix",
"base16-vim": "base16-vim", "base16-vim": "base16-vim",
"firefox-gnome-theme": "firefox-gnome-theme", "firefox-gnome-theme": "firefox-gnome-theme",
"flake-parts": "flake-parts", "flake-parts": "flake-parts_3",
"gnome-shell": "gnome-shell", "gnome-shell": "gnome-shell",
"nixpkgs": [ "nixpkgs": "nixpkgs_4",
"nixpkgs"
],
"nur": "nur", "nur": "nur",
"systems": "systems", "systems": "systems_3",
"tinted-foot": "tinted-foot", "tinted-foot": "tinted-foot",
"tinted-kitty": "tinted-kitty", "tinted-kitty": "tinted-kitty",
"tinted-schemes": "tinted-schemes", "tinted-schemes": "tinted-schemes",
@@ -250,11 +585,11 @@
"tinted-zed": "tinted-zed" "tinted-zed": "tinted-zed"
}, },
"locked": { "locked": {
"lastModified": 1765897595, "lastModified": 1764798099,
"narHash": "sha256-NgTRxiEC5y96zrhdBygnY+mSzk5FWMML39PcRGVJmxg=", "narHash": "sha256-IIwR5ZWo7tjxjRpkz0tViF9KFbQ1YXs9Wkan46WQbfk=",
"owner": "danth", "owner": "danth",
"repo": "stylix", "repo": "stylix",
"rev": "e6829552d4bb659ebab00f08c61d8c62754763f3", "rev": "4b9e0e7ba3cccb86fe2bf0f4a2dd18256bef1cc6",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -278,6 +613,36 @@
"type": "github" "type": "github"
} }
}, },
"systems_2": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"systems_3": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"tinted-foot": { "tinted-foot": {
"flake": false, "flake": false,
"locked": { "locked": {

View File

@@ -2,16 +2,15 @@
description = "🥶"; description = "🥶";
inputs = { inputs = {
# chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable"; chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
# daeuniverse.url = "github:daeuniverse/flake.nix"; daeuniverse.url = "github:daeuniverse/flake.nix";
disko.inputs.nixpkgs.follows = "nixpkgs"; disko.inputs.nixpkgs.follows = "nixpkgs";
disko.url = "github:nix-community/disko"; disko.url = "github:nix-community/disko";
home-manager.inputs.nixpkgs.follows = "nixpkgs"; home-manager.inputs.nixpkgs.follows = "nixpkgs";
home-manager.url = "github:nix-community/home-manager"; home-manager.url = "github:nix-community/home-manager";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
# nixvim.inputs.nixpkgs.follows = "nixpkgs"; nixvim.inputs.nixpkgs.follows = "nixpkgs";
# nixvim.url = "github:nix-community/nixvim"; nixvim.url = "github:nix-community/nixvim";
stylix.inputs.nixpkgs.follows = "nixpkgs";
stylix.url = "github:danth/stylix"; stylix.url = "github:danth/stylix";
}; };

View File

@@ -45,7 +45,6 @@
python312Packages.python-lsp-server python312Packages.python-lsp-server
#JS/TS/Web #JS/TS/Web
biome
prettierd prettierd
nodePackages.prettier nodePackages.prettier
@@ -94,6 +93,7 @@
which-key-nvim which-key-nvim
fzf-lua fzf-lua
snacks-nvim snacks-nvim
markview-nvim
{ {
name = "lazydev.nvim"; name = "lazydev.nvim";
path = lazydev-nvim; path = lazydev-nvim;
@@ -223,6 +223,8 @@
yaml yaml
toml toml
dockerfile dockerfile
markdown
markdown_inline
])).dependencies; ])).dependencies;
}; };
in in

View File

@@ -5,31 +5,40 @@
local map = vim.keymap.set local map = vim.keymap.set
local opts = { noremap = true, silent = true } local opts = { noremap = true, silent = true }
-- === VSCode-like buffer/tab navigation === -- === VSCode-like buffer/tab navigation ===
map("n", "<C-Tab>", "<cmd>bnext<CR>", { desc = "Next buffer (like VSCode)" }) map("n", "<C-Tab>", "<cmd>bnext<CR>", { desc = "Next buffer (like VSCode)" })
map("n", "<C-S-Tab>", "<cmd>bprevious<CR>", { desc = "Previous buffer (like VSCode)" }) map("n", "<C-S-Tab>", "<cmd>bprevious<CR>", { desc = "Previous buffer (like VSCode)" })
-- === Vscode-like Close buffer navigation === -- === Close buffer like Ctrl + W in VSCode ===
vim.keymap.set("n", "<C-w>", function() vim.keymap.set("n", "<C-w>", "<cmd>BufferLinePickClose<CR>", { desc = "Close buffer (BufferLine)" })
local current = vim.api.nvim_get_current_buf()
local buffers = vim.fn.getbufinfo({buflisted = 1})
local next_buf = nil vim.keymap.set("n", "<C-S-5>", function()
for i, buf in ipairs(buffers) do if vim.bo.buftype == "terminal" then
if buf.bufnr == current then vim.cmd("vsplit | terminal")
next_buf = buffers[i + 1] or buffers[i - 1] else
break vim.cmd("botright split | terminal")
end end
end end, { desc = "Split terminal" })
if next_buf then -- 在终端模式下的快捷键
vim.api.nvim_set_current_buf(next_buf.bufnr) vim.keymap.set("t", "<C-h>", "<C-\\><C-n><C-w>h", { desc = "Go to left window" })
end vim.keymap.set("t", "<C-j>", "<C-\\><C-n><C-w>j", { desc = "Go to lower window" })
vim.keymap.set("t", "<C-k>", "<C-\\><C-n><C-w>k", { desc = "Go to upper window" })
vim.keymap.set("t", "<C-l>", "<C-\\><C-n><C-w>l", { desc = "Go to right window" })
vim.api.nvim_buf_delete(current, { force = true })
end, { desc = "Close current buffer like VSCode" })
-- XDG Open
vim.keymap.set("n", "<leader>xo", function() vim.keymap.set("n", "<leader>xo", function()
vim.fn.jobstart({ "xdg-open", vim.fn.expand("%:p") }, { detach = true }) vim.fn.jobstart({ "xdg-open", vim.fn.expand("%:p") }, { detach = true })
end, { desc = "使用系统默认应用程序打开当前文件" }) end, { desc = "使用系统默认应用程序打开当前文件" })
-- === Markdown priview ===
vim.keymap.set("n", "<leader>mp", "<cmd>Markview<CR>", {
desc = "Toggle Markview Inline Preview",
})
-- 开启对比预览
vim.keymap.set("n", "<leader>mv", "<cmd>Markview splitToggle<CR>", {
desc = "Toggle Markview Split Preview",
})
-- 关闭对比预览
vim.keymap.set("n", "<leader>mc", "<cmd>Markview splitClose<CR>", {
desc = "Close Markview Split Preview",
})

View File

@@ -1,16 +1,4 @@
-- Options are automatically loaded before lazy.nvim startup -- Options are automatically loaded before lazy.nvim startup
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua -- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
-- Add any additional options here -- Add any additional options here
-- Disable autoformat
vim.g.autoformat = false vim.g.autoformat = false
-- Let terminal just one
vim.g.root_spec = { "cwd" }
-- Disable markdown views
vim.api.nvim_create_autocmd("FileType", {
pattern = "markdown",
callback = function()
vim.opt_local.conceallevel = 0
vim.opt_local.concealcursor = ""
end,
})

View File

@@ -1,28 +0,0 @@
return {
{
"zbirenbaum/copilot.lua",
cmd = "Copilot",
event = "InsertEnter",
config = function()
require("copilot").setup({
suggestion = { enabled = true, auto_trigger = true },
})
end,
},
{
"CopilotC-Nvim/CopilotChat.nvim",
branch = "main",
dependencies = {
{ "zbirenbaum/copilot.lua" },
{ "nvim-lua/plenary.nvim" },
},
opts = {
debug = false,
},
keys = {
{ "<leader>cc", "<cmd>CopilotChatToggle<cr>", desc = "CopilotChat - Toggle" },
{ "<leader>ce", "<cmd>CopilotChatExplain<cr>", mode = "v", desc = "CopilotChat - Explain code" },
},
},
}

View File

@@ -34,11 +34,11 @@ return {
-- Python -- Python
opts.formatters_by_ft.python = { "black", "ruff_format" } opts.formatters_by_ft.python = { "black", "ruff_format" }
-- JS/TS/Web -- JS/TS/Web
opts.formatters_by_ft.javascript = { "biome" } opts.formatters_by_ft.javascript = { "prettierd" }
opts.formatters_by_ft.typescript = { "biome" } opts.formatters_by_ft.typescript = { "prettierd" }
opts.formatters_by_ft.javascriptreact = { "biome" } opts.formatters_by_ft.javascriptreact = { "prettierd" }
opts.formatters_by_ft.typescriptreact = { "biome" } opts.formatters_by_ft.typescriptreact = { "prettierd" }
opts.formatters_by_ft.vue = { "biome" } opts.formatters_by_ft.vue = { "prettierd" }
-- JSON -- JSON
opts.formatters_by_ft.json = { "jq" } opts.formatters_by_ft.json = { "jq" }
-- YAML -- YAML

View File

@@ -0,0 +1,19 @@
return {
"OXY2DEV/markview.nvim",
name = "markview.nvim",
lazy = false,
dependencies = {
"nvim-treesitter/nvim-treesitter",
"nvim-tree/nvim-web-devicons",
},
config = function()
require("markview").setup({
markdown = { enable = true },
latex = {
enable = true,
inline = { enable = true },
block = { enable = true },
},
})
end,
}

View File

@@ -6,7 +6,7 @@
}: { }: {
imports = with inputs; [ imports = with inputs; [
./${hostname} ./${hostname}
# chaotic.nixosModules.default chaotic.nixosModules.default
disko.nixosModules.disko disko.nixosModules.disko
stylix.nixosModules.stylix stylix.nixosModules.stylix
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager

View File

@@ -1,65 +1,57 @@
{ {
# -------------------- Hardware -------------------- # Specific Use Cases
# See: https://github.com/blueman-project/blueman ## Hardware related
Bluetooth = true; Bluetooth = true;
### See https://github.com/blueman-project/blueman
# See: https://nixos.wiki/wiki/AMD_GPU
GPU-AMD = true; GPU-AMD = true;
### See https://nixos.wiki/wiki/AMD_GPU
# See: https://nixos.wiki/wiki/Nvidia SingBox = true;
GPU-Nvidia = false;
# See: https://nixos.wiki/wiki/Intel_Graphics Power-control = "TLP";
GPU-Intel = false; ### Possible options: PPD ; TLP
# See: https://github.com/linrunner/TLP ## Software related
Power-control = "TLP"; ## Possible options: PPD ; TLP QEMU-VM-Use-Case = true;
### See https://github.com/qemu/qemu ; https://github.com/virt-manager/virt-manager
# -------------------- System -------------------- Database-Use-Case = true;
# See https://nixos.wiki/wiki/Bootloader
# See: https://search.nixos.org/options?show=boot.loader.grub.mirroredBoots
BootLoader = "systemd-boot"; ## Possible options: grub ; grub-mirror ; systemd-boot
# See: https://search.nixos.org/options?show=boot.kernelPackages # Options
# See: https://www.nyx.chaotic.cx/#using-sched-ext-schedulers ## System related
KernelPackages = "linuxPackages_zen"; BootLoader = "systemd-boot";
### Possible options: grub ; grub-mirror ; systemd-boot # See https://nixos.wiki/wiki/Bootloader https://search.nixos.org/options?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=mirroredBoots
# See: https://mynixos.com/nixpkgs/option/system.stateVersion KernelPackages = "linuxPackages_cachyos";
StateVersion = "26.05"; ### See https://search.nixos.org/options?show=boot.kernelPackages https://www.nyx.chaotic.cx/#using-sched-ext-schedulers
# See: https://docs.moodle.org/405/en/Table_of_locales
Locale = "en_US.UTF-8";
# See: https://en.wikipedia.org/wiki/Keyboard_layout
KeyboardLayout = "us"; KeyboardLayout = "us";
### See https://en.wikipedia.org/wiki/Keyboard_layout
Locale = "en_US.UTF-8";
### See https://docs.moodle.org/405/en/Table_of_locales
StateVersion = "25.11";
### See https://mynixos.com/nixpkgs/option/system.stateVersion
# See: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
TimeZone = "Asia/Singapore"; TimeZone = "Asia/Singapore";
### See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
# -------------------- Display -------------------- ## Wayland related
WM = "niri"; ## Options: "Hyprland" | "niri" | "sway"
# See: https://wiki.hyprland.org/Configuring/XWayland/#hidpi-xwayland
# See: https://github.com/swaywm/sway/wiki#hidpi
ScaleLevel = "1";
# See: https://github.com/swaywm/sway/wiki#display-configuration
OutputSettings = "output * scale 1";
# See: https://wiki.hyprland.org/Configuring/Monitors
MonitorSettings = " MonitorSettings = "
monitor=eDP-1, 2560x1600@165, 0x0, 1.25 monitor=eDP-1, 2560x1600@165, 0x0, 1.25
monitor=DP-1, 2560x1440@144, 2560x0, 1.25 monitor=DP-1, 2560x1440@144, 2560x0, 1.25
"; ";
### MonitorSettings For Hyprland See https://wiki.hyprland.org/Configuring/Monitors/
# -------------------- Software -------------------- OutputSettings = "output * scale 1";
# See: https://sing-box.sagernet.org ### OutputSettings For sway See https://github.com/swaywm/sway/wiki#display-configuration
SingBox = true;
# See: https://github.com/qemu/qemu ScaleLevel = "1";
# See: https://github.com/virt-manager/virt-manager ### For Hyprland see https://wiki.hyprland.org/Configuring/XWayland/#hidpi-xwayland
QEMU-VM-Use-Case = true; ### For sway see https://github.com/swaywm/sway/wiki#hidpi
# See: https://github.com/dbeaver/dbeaver WM = "niri";
Database-Use-Case = true; ### Possible options: Hyprland ; niri ; sway
} }

View File

@@ -1,62 +1,63 @@
{ {
# -------------------- Hardware -------------------- # Specific Use Cases
# See: https://github.com/blueman-project/blueman ## Hardware related
Bluetooth = false; Bluetooth = false;
### See https://github.com/blueman-project/blueman
# See: https://nixos.wiki/wiki/AMD_GPU
GPU-AMD = false; GPU-AMD = false;
### See https://nixos.wiki/wiki/AMD_GPU
# See: https://nixos.wiki/wiki/Nvidia
GPU-Nvidia = false; GPU-Nvidia = false;
### See https://nixos.wiki/wiki/Nvidia
# See: https://nixos.wiki/wiki/Intel_Graphics
GPU-Intel = false; GPU-Intel = false;
### See https://nixos.wiki/wiki/Intel_Graphics
# See: https://github.com/linrunner/TLP HotSpot-Use-Case = false;
Power-control = "PPD"; ## Possible options: PPD ; TLP ### See https://nixos.wiki/wiki/Internet_Connection_Sharing
# -------------------- System --------------------
# See https://nixos.wiki/wiki/Bootloader
# See: https://search.nixos.org/options?show=boot.loader.grub.mirroredBoots
BootLoader = "systemd-boot"; ## Possible options: grub ; grub-mirror ; systemd-boot
# See: https://search.nixos.org/options?show=boot.kernelPackages
# See: https://www.nyx.chaotic.cx/#using-sched-ext-schedulers
KernelPackages = "linuxPackages_zen";
# See: https://mynixos.com/nixpkgs/option/system.stateVersion
StateVersion = "26.05";
# See: https://docs.moodle.org/405/en/Table_of_locales
Locale = "en_US.UTF-8";
# See: https://en.wikipedia.org/wiki/Keyboard_layout
KeyboardLayout = "us";
# See: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
TimeZone = "Asia/Singapore";
# -------------------- Display --------------------
WM = "Hyprland"; ## Options: "Hyprland" | "niri" | "sway"
# See: https://wiki.hyprland.org/Configuring/XWayland/#hidpi-xwayland
# See: https://github.com/swaywm/sway/wiki#hidpi
ScaleLevel = "1";
# See: https://github.com/swaywm/sway/wiki#display-configuration
OutputSettings = "output * scale 1";
# See: https://wiki.hyprland.org/Configuring/Monitors
MonitorSettings = "monitor = , preferred, auto, auto";
# -------------------- Software --------------------
# See: https://sing-box.sagernet.org
SingBox = true; SingBox = true;
# See: https://github.com/qemu/qemu Power control = "PPD";
# See: https://github.com/virt-manager/virt-manager ### Possible options: PPD ; TLP
QEMU-VM-Use-Case = false;
## Software related
QEMU-VM-Use-Case = false;
### See https://github.com/qemu/qemu ; https://github.com/virt-manager/virt-manager
# See: https://github.com/dbeaver/dbeaver
Database-Use-Case = true; Database-Use-Case = true;
# Options
## System related
BootLoader = "systemd-boot";
### Possible options: grub ; grub-mirror ; systemd-boot # See https://nixos.wiki/wiki/Bootloader https://search.nixos.org/options?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=mirroredBoots
KernelPackages = "linuxPackages_cachyos";
### See https://search.nixos.org/options?show=boot.kernelPackages https://www.nyx.chaotic.cx/#using-sched-ext-schedulers
KeyboardLayout = "us";
### See https://en.wikipedia.org/wiki/Keyboard_layout
Locale = "en_US.UTF-8";
### See https://docs.moodle.org/405/en/Table_of_locales
StateVersion = "25.11";
### See https://mynixos.com/nixpkgs/option/system.stateVersion
TimeZone = "Asia/Singapore";
### See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
## Wayland related
MonitorSettings = "monitor = , preferred, auto, auto";
### MonitorSettings For Hyprland See https://wiki.hyprland.org/Configuring/Monitors/
OutputSettings = "output * scale 1";
### OutputSettings For sway See https://github.com/swaywm/sway/wiki#display-configuration
ScaleLevel = "1";
### For Hyprland see https://wiki.hyprland.org/Configuring/XWayland/#hidpi-xwayland
### For sway see https://github.com/swaywm/sway/wiki#hidpi
WM = "Hyprland";
### Possible options: Hyprland ; niri ; sway
} }

View File

@@ -10,7 +10,7 @@ in
}; };
systemd.services.mysql = { systemd.services.mysql = {
wantedBy = lib.mkForce [ ]; enable = false;
}; };
environment.systemPackages = [ environment.systemPackages = [

View File

@@ -144,6 +144,7 @@ in
}; };
system = { system = {
rebuild.enableNg = true;
stateVersion = StateVersion; stateVersion = StateVersion;
}; };

View File

@@ -90,7 +90,7 @@ in {
jdk17 jdk17
python312 python312
pnpm pnpm
nodejs_24 nodejs_20
]; ];
}; };

View File

@@ -31,13 +31,13 @@ with lib; {
substituters = [ substituters = [
"https://cache.garnix.io" # See https://github.com/daeuniverse/flake.nix "https://cache.garnix.io" # See https://github.com/daeuniverse/flake.nix
"https://cache.nixos.org" # See https://nixos.wiki/wiki/Binary_Cache "https://cache.nixos.org" # See https://nixos.wiki/wiki/Binary_Cache
# "https://chaotic-nyx.cachix.org" # See https://github.com/chaotic-cx/nyx "https://chaotic-nyx.cachix.org" # See https://github.com/chaotic-cx/nyx
"https://nix-community.cachix.org" # See https://nix-community.org/cache/ "https://nix-community.cachix.org" # See https://nix-community.org/cache/
]; ];
trusted-public-keys = [ trusted-public-keys = [
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=" "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
# "chaotic-nyx.cachix.org-1:HfnXSw4pj95iI/n17rIDy40agHj12WfF+Gqk6SonIT8=" "chaotic-nyx.cachix.org-1:HfnXSw4pj95iI/n17rIDy40agHj12WfF+Gqk6SonIT8="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
]; ];
warn-dirty = false; warn-dirty = false;