Compare commits

...

4 Commits

Author SHA1 Message Date
dichgrem
0ce3551780 update:flake
remove:rebuild.enableNg
update:StateVersion_26.05

Version 434 -> 435:
  bind: 9.20.15 → 9.20.16
  brave: 1.85.111 → 1.85.116, -193.0 KiB
  breeze-icons: 6.20.0 → 6.21.0, +55.5 KiB
  cinnamon-desktop: 6.4.2 → 6.6.0, -10.2 KiB
  cinnamon-translations: 6.4.2 → 6.6.0, +330.4 KiB
  extra-cmake-modules: 6.20.0 → 6.21.0
  firefox: +43.7 KiB
  firefox-unwrapped: +164.1 KiB
  gopls: 0.20.0 → 0.21.0, +2270.5 KiB
  hyprutils: 0.10.4 → 0.11.0
  karchive: 6.20.0 → 6.21.0
  kauth: 6.20.0 → 6.21.0
  kbookmarks: 6.20.0 → 6.21.0
  kcmutils: 6.20.0 → 6.21.0
  kcodecs: 6.20.0 → 6.21.0
  kcolorscheme: 6.20.0 → 6.21.0
  kcompletion: 6.20.0 → 6.21.0
  kconfig: 6.20.0 → 6.21.0
  kconfigwidgets: 6.20.0 → 6.21.0
  kcoreaddons: 6.20.0 → 6.21.0, +20.9 KiB
  kcrash: 6.20.0 → 6.21.0
  kdbusaddons: 6.20.0 → 6.21.0
  kdeclarative: 6.20.0 → 6.21.0
  kdoctools: 6.20.0 → 6.21.0
  kglobalaccel: 6.20.0 → 6.21.0
  kguiaddons: 6.20.0 → 6.21.0
  ki18n: 6.20.0 → 6.21.0, +143.2 KiB
  kiconthemes: 6.20.0 → 6.21.0
  kimageformats: 6.20.0 → 6.21.0
  kio: 6.20.0 → 6.21.0, +112.8 KiB
  kirigami: 6.20.0 → 6.21.0, -181.2 KiB
  kitemviews: 6.20.0 → 6.21.0
  kjobwidgets: 6.20.0 → 6.21.0
  knotifications: 6.20.0 → 6.21.0
  kpackage: 6.20.0 → 6.21.0
  kparts: 6.20.0 → 6.21.0
  kservice: 6.20.0 → 6.21.0
  ksvg: 6.20.0 → 6.21.0
  ktextwidgets: 6.20.0 → 6.21.0
  kwallet: 6.20.0 → 6.21.0
  kwidgetsaddons: 6.20.0 → 6.21.0
  kwindowsystem: 6.20.0 → 6.21.0
  kxmlgui: 6.20.0 → 6.21.0, +16.5 KiB
  nemo: 6.4.5 → 6.6.1, +36.3 KiB
  nixos-system-dos: 26.05.20251211.2fbfb1d → 26.05.20251215.1306659
  python3.13-python-xapp: 3.0.0 → 3.0.1
  qqc2-desktop-style: 6.20.0 → 6.21.0, -72.9 KiB
  ruff: 0.14.8 → 0.14.9, +83.0 KiB
  sing-box: 1.12.12 → 1.12.13
  solid: 6.20.0 → 6.21.0
  sonnet: 6.20.0 → 6.21.0, +48.0 KiB
  source: +251.4 KiB
  vimplugin-mini.nvim: 2025-12-07 → 2025-12-11
  vimplugin-neo-tree.nvim: 2025-12-07 → 2025-12-08
  vimplugin-neoconf.nvim: 2025-12-07 → 2025-12-12
  vimplugin-nvim-lint: 2025-12-06 → 2025-12-11
  vimplugin-nvim-lspconfig: 2025-12-07 → 2025-12-12
  x86_energy_perf_policy: 6.12.61 → 6.12.62
  xapp-symbolic-icons: ∅ → 1.0.6, +1033.0 KiB
  zed-editor: 0.216.0 → 0.216.1, +11.9 KiB
2025-12-18 12:12:04 +08:00
dichgrem
0bd5d771c0 chore:nvim_setting
feat:use biome fmt
test:add copilot
chore:let terminal just one
fix:keymaps for close buffer
fix:disable markdown view && fix conceallevel
2025-12-16 23:56:56 +08:00
dichgrem
85ee50e214 chore:remove_chaotic
feat:Switch_to_zen_kernel
2025-12-14 10:33:32 +08:00
dichgrem
d0c16e345a fix:switch.sh&&mysql
update:flake

Version 406 -> 410:
  bat: 0.26.0 → 0.26.1, +17.6 KiB
  brave: 1.84.141 → 1.85.111, +2964.5 KiB
  hyprlang: 0.6.6 → 0.6.7
  ipxe: 1.21.1-unstable-2025-11-26 → 1.21.1-unstable-2025-12-03
  kazumi: 1.9.0 → 1.9.1, +218.1 KiB
  libbytesize: 2.11 → 2.12
  libvlc: 3.0.21 → 3.0.22, +1912.7 KiB
  mesa: 25.3.0 → 25.3.1, +52.0 KiB
  nixos-system-dos: 26.05.20251202.418468a → 26.05.20251205.f61125a
  scx_full: 1.0.18 → 1.0.19, +27223.4 KiB
  source: +548.8 KiB
  xwayland-satellite: 0.7 → 0.8, +891.4 KiB
  zed-editor: 0.214.7 → 0.215.3, +16693.9 KiB
  fastfetch: 2.55.1 → 2.56.0, +8.6 KiB
  firefox: -61.6 KiB
  firefox-unwrapped: -149.0 KiB
  gst-plugins-rs: 0.14.2 → 0.14.4, -23465.5 KiB
  initrd-linux: +8.7 KiB
  libgit2: 1.9.1 → 1.9.2
  linux: 6.18.0-modules → ∅, -2899.5 KiB
  nix: 2.31.2 → 2.31.2+1
  nix-cmd: 2.31.2 → 2.31.2+1
  nix-expr: 2.31.2 → 2.31.2+1
  nix-fetchers: 2.31.2 → 2.31.2+1
  nix-flake: 2.31.2 → 2.31.2+1
  nix-main: 2.31.2 → 2.31.2+1
  nix-store: 2.31.2 → 2.31.2+1
  nix-util: 2.31.2 → 2.31.2+1
  nixos-icons: 0-unstable-2024-04-10 → 0-unstable-2025-06-28
  nixos-system-dos: 26.05.20251205.f61125a → 26.05.20251208.addf7cf
  nss: 3.118.1 → 3.119
  python3: +216.7 KiB
  python3.12-python-lsp-server: 1.13.2 → 1.14.0
  python3.13-dbus-python: ∅ → 1.4.0, +685.3 KiB
  readest: 0.9.93 → 0.9.94, +1060.0 KiB
  ruff: 0.14.7 → 0.14.8, +87.0 KiB
  samba: 4.22.5 → 4.22.6, +15.4 KiB
  source: +201.2 KiB
  unit-script-initrd-nixos-activation: ε → ∅
  webkitgtk: 2.50.2+abi=4.1 → 2.50.3+abi=4.1
  x86_energy_perf_policy: 6.12.60 → 6.12.61
2025-12-10 22:28:05 +08:00
17 changed files with 107 additions and 451 deletions

View File

@@ -50,3 +50,5 @@ sleep 0.5
niri msg reload-layout >/dev/null 2>&1 || true
pkill swayosd-server
(swayosd-server &>/dev/null &)
pkill wl-gammarelay-rs
(wl-gammarelay-rs &>/dev/null &)

397
flake.lock generated
View File

@@ -21,17 +21,17 @@
"base16-fish": {
"flake": false,
"locked": {
"lastModified": 1754405784,
"narHash": "sha256-l9xHIy+85FN+bEo6yquq2IjD1rSg9fjfjpyGP1W8YXo=",
"lastModified": 1765809053,
"narHash": "sha256-XCUQLoLfBJ8saWms2HCIj4NEN+xNsWBlU1NrEPcQG4s=",
"owner": "tomyun",
"repo": "base16-fish",
"rev": "23ae20a0093dca0d7b39d76ba2401af0ccf9c561",
"rev": "86cbea4dca62e08fb7fd83a70e96472f92574782",
"type": "github"
},
"original": {
"owner": "tomyun",
"repo": "base16-fish",
"rev": "23ae20a0093dca0d7b39d76ba2401af0ccf9c561",
"rev": "86cbea4dca62e08fb7fd83a70e96472f92574782",
"type": "github"
}
},
@@ -68,48 +68,6 @@
"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": {
"inputs": {
"nixpkgs": [
@@ -117,11 +75,11 @@
]
},
"locked": {
"lastModified": 1764627417,
"narHash": "sha256-D6xc3Rl8Ab6wucJWdvjNsGYGSxNjQHzRc2EZ6eeQ6l4=",
"lastModified": 1765794845,
"narHash": "sha256-YD5QWlGnusNbZCqR3pxG8tRxx9yUXayLZfAJRWspq2s=",
"owner": "nix-community",
"repo": "disko",
"rev": "5a88a6eceb8fd732b983e72b732f6f4b8269bef3",
"rev": "7194cfe5b7a3660726b0fe7296070eaef601cae9",
"type": "github"
},
"original": {
@@ -147,45 +105,6 @@
}
},
"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": {
"nixpkgs-lib": [
"stylix",
@@ -206,38 +125,6 @@
"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": {
"flake": false,
"locked": {
@@ -276,16 +163,15 @@
"home-manager": {
"inputs": {
"nixpkgs": [
"chaotic",
"nixpkgs"
]
},
"locked": {
"lastModified": 1764636297,
"narHash": "sha256-S41K55kw+hWgDfgKmZ9/fMZ3F0BQDMvqFfE120fMHeE=",
"lastModified": 1765980955,
"narHash": "sha256-rB45jv4uwC90vM9UZ70plfvY/2Kdygs+zlQ07dGQFk4=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "ff067cfc619fdf6f82d50344e7d19ff2323f0827",
"rev": "89c9508bbe9b40d36b3dc206c2483ef176f15173",
"type": "github"
},
"original": {
@@ -294,160 +180,23 @@
"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": {
"locked": {
"lastModified": 1764517877,
"narHash": "sha256-pp3uT4hHijIC8JUK5MEqeAWmParJrgBVzHLNfJDZxg4=",
"owner": "NixOS",
"lastModified": 1765779637,
"narHash": "sha256-KJ2wa/BLSrTqDjbfyNx70ov/HdgNBCBBSQP3BIzKnv4=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "2d293cbfa5a793b4c50d17c05ef9e385b90edf6c",
"rev": "1306659b587dc277866c7b69eb97e5f07864d8c4",
"type": "github"
},
"original": {
"owner": "NixOS",
"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",
"repo": "nixpkgs",
"rev": "418468ac9527e799809c900eda37cbff999199b6",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_4": {
"locked": {
"lastModified": 1764517877,
"narHash": "sha256-pp3uT4hHijIC8JUK5MEqeAWmParJrgBVzHLNfJDZxg4=",
@@ -463,29 +212,6 @@
"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": {
"inputs": {
"flake-parts": [
@@ -511,61 +237,14 @@
"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": {
"inputs": {
"chaotic": "chaotic",
"daeuniverse": "daeuniverse",
"disko": "disko",
"home-manager": "home-manager_2",
"nixpkgs": "nixpkgs_3",
"nixvim": "nixvim",
"home-manager": "home-manager",
"nixpkgs": "nixpkgs",
"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": {
"inputs": {
"base16": "base16",
@@ -573,11 +252,11 @@
"base16-helix": "base16-helix",
"base16-vim": "base16-vim",
"firefox-gnome-theme": "firefox-gnome-theme",
"flake-parts": "flake-parts_3",
"flake-parts": "flake-parts",
"gnome-shell": "gnome-shell",
"nixpkgs": "nixpkgs_4",
"nixpkgs": "nixpkgs_2",
"nur": "nur",
"systems": "systems_3",
"systems": "systems",
"tinted-foot": "tinted-foot",
"tinted-kitty": "tinted-kitty",
"tinted-schemes": "tinted-schemes",
@@ -585,11 +264,11 @@
"tinted-zed": "tinted-zed"
},
"locked": {
"lastModified": 1764798099,
"narHash": "sha256-IIwR5ZWo7tjxjRpkz0tViF9KFbQ1YXs9Wkan46WQbfk=",
"lastModified": 1765897595,
"narHash": "sha256-NgTRxiEC5y96zrhdBygnY+mSzk5FWMML39PcRGVJmxg=",
"owner": "danth",
"repo": "stylix",
"rev": "4b9e0e7ba3cccb86fe2bf0f4a2dd18256bef1cc6",
"rev": "e6829552d4bb659ebab00f08c61d8c62754763f3",
"type": "github"
},
"original": {
@@ -613,36 +292,6 @@
"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": {
"flake": false,
"locked": {

View File

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

View File

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

View File

@@ -9,36 +9,27 @@ local opts = { noremap = true, silent = true }
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)" })
-- === Close buffer like Ctrl + W in VSCode ===
vim.keymap.set("n", "<C-w>", "<cmd>BufferLinePickClose<CR>", { desc = "Close buffer (BufferLine)" })
-- === Vscode-like Close buffer navigation ===
vim.keymap.set("n", "<C-w>", function()
local current = vim.api.nvim_get_current_buf()
local buffers = vim.fn.getbufinfo({buflisted = 1})
vim.keymap.set("n", "<C-S-5>", function()
if vim.bo.buftype == "terminal" then
vim.cmd("vsplit | terminal")
else
vim.cmd("botright split | terminal")
local next_buf = nil
for i, buf in ipairs(buffers) do
if buf.bufnr == current then
next_buf = buffers[i + 1] or buffers[i - 1]
break
end
end
end, { desc = "Split terminal" })
-- 在终端模式下的快捷键
vim.keymap.set("t", "<C-h>", "<C-\\><C-n><C-w>h", { desc = "Go to left window" })
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" })
if next_buf then
vim.api.nvim_set_current_buf(next_buf.bufnr)
end
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.fn.jobstart({ "xdg-open", vim.fn.expand("%:p") }, { detach = true })
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,4 +1,16 @@
-- 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
-- Add any additional options here
-- Disable autoformat
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

@@ -0,0 +1,28 @@
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
opts.formatters_by_ft.python = { "black", "ruff_format" }
-- JS/TS/Web
opts.formatters_by_ft.javascript = { "prettierd" }
opts.formatters_by_ft.typescript = { "prettierd" }
opts.formatters_by_ft.javascriptreact = { "prettierd" }
opts.formatters_by_ft.typescriptreact = { "prettierd" }
opts.formatters_by_ft.vue = { "prettierd" }
opts.formatters_by_ft.javascript = { "biome" }
opts.formatters_by_ft.typescript = { "biome" }
opts.formatters_by_ft.javascriptreact = { "biome" }
opts.formatters_by_ft.typescriptreact = { "biome" }
opts.formatters_by_ft.vue = { "biome" }
-- JSON
opts.formatters_by_ft.json = { "jq" }
-- YAML

View File

@@ -1,19 +0,0 @@
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; [
./${hostname}
chaotic.nixosModules.default
# chaotic.nixosModules.default
disko.nixosModules.disko
stylix.nixosModules.stylix
home-manager.nixosModules.home-manager

View File

@@ -23,7 +23,7 @@
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";
KernelPackages = "linuxPackages_zen";
### See https://search.nixos.org/options?show=boot.kernelPackages https://www.nyx.chaotic.cx/#using-sched-ext-schedulers
KeyboardLayout = "us";
@@ -32,7 +32,7 @@
Locale = "en_US.UTF-8";
### See https://docs.moodle.org/405/en/Table_of_locales
StateVersion = "25.11";
StateVersion = "26.05";
### See https://mynixos.com/nixpkgs/option/system.stateVersion
TimeZone = "Asia/Singapore";

View File

@@ -14,7 +14,7 @@
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/67e9d418-8f31-4af7-9178-ae9641099844";
{ device = "/dev/mapper/luks-6647cbcd-ed3a-4205-9a2c-78e337e2f3bf";
fsType = "xfs";
};
@@ -28,13 +28,6 @@
swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp2s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View File

@@ -32,7 +32,7 @@
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";
KernelPackages = "linuxPackages_zen";
### See https://search.nixos.org/options?show=boot.kernelPackages https://www.nyx.chaotic.cx/#using-sched-ext-schedulers
KeyboardLayout = "us";

View File

@@ -9,9 +9,12 @@ in
package = pkgs.mysql84;
};
systemd.services.mysql = {
wantedBy = lib.mkForce [ ];
};
environment.systemPackages = [
pkgs.dbeaver-bin
];
};
}

View File

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

View File

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

View File

@@ -31,13 +31,13 @@ with lib; {
substituters = [
"https://cache.garnix.io" # See https://github.com/daeuniverse/flake.nix
"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/
];
trusted-public-keys = [
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
"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="
];
warn-dirty = false;