mirror of
https://github.com/Dichgrem/DCGOS.git
synced 2026-02-05 05:41:57 -05:00
Compare commits
2 Commits
2856446385
...
6e03f553b7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6e03f553b7 | ||
|
|
6decde827c |
116
flake.lock
generated
116
flake.lock
generated
@@ -68,26 +68,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"disko": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1765794845,
|
|
||||||
"narHash": "sha256-YD5QWlGnusNbZCqR3pxG8tRxx9yUXayLZfAJRWspq2s=",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "disko",
|
|
||||||
"rev": "7194cfe5b7a3660726b0fe7296070eaef601cae9",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "disko",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"firefox-gnome-theme": {
|
"firefox-gnome-theme": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
@@ -125,6 +105,24 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"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": {
|
||||||
@@ -167,11 +165,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1765980955,
|
"lastModified": 1766553851,
|
||||||
"narHash": "sha256-rB45jv4uwC90vM9UZ70plfvY/2Kdygs+zlQ07dGQFk4=",
|
"narHash": "sha256-hHKQhHkXxuPJwLkI8wdu826GLV5AcuW9/HVdc9eBnTU=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "89c9508bbe9b40d36b3dc206c2483ef176f15173",
|
"rev": "7eca7f7081036a7b740090994c9ec543927f89a7",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -180,13 +178,34 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"lazyvim": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1765315270,
|
||||||
|
"narHash": "sha256-E06fubkv6gWLiQd/K0njl8wtFShu30rDLNRhf/LRma0=",
|
||||||
|
"owner": "pfassina",
|
||||||
|
"repo": "lazyvim-nix",
|
||||||
|
"rev": "a3615f3ac58cefacb83123643394f88d09006912",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "pfassina",
|
||||||
|
"repo": "lazyvim-nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1765779637,
|
"lastModified": 1766309749,
|
||||||
"narHash": "sha256-KJ2wa/BLSrTqDjbfyNx70ov/HdgNBCBBSQP3BIzKnv4=",
|
"narHash": "sha256-3xY8CZ4rSnQ0NqGhMKAy5vgC+2IVK0NoVEzDoOh4DA4=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "1306659b587dc277866c7b69eb97e5f07864d8c4",
|
"rev": "a6531044f6d0bef691ea18d4d4ce44d0daa6e816",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -196,22 +215,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1764517877,
|
|
||||||
"narHash": "sha256-pp3uT4hHijIC8JUK5MEqeAWmParJrgBVzHLNfJDZxg4=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "2d293cbfa5a793b4c50d17c05ef9e385b90edf6c",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixos-unstable",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nur": {
|
"nur": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-parts": [
|
"flake-parts": [
|
||||||
@@ -239,8 +242,8 @@
|
|||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"disko": "disko",
|
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
|
"lazyvim": "lazyvim",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"stylix": "stylix"
|
"stylix": "stylix"
|
||||||
}
|
}
|
||||||
@@ -254,9 +257,11 @@
|
|||||||
"firefox-gnome-theme": "firefox-gnome-theme",
|
"firefox-gnome-theme": "firefox-gnome-theme",
|
||||||
"flake-parts": "flake-parts",
|
"flake-parts": "flake-parts",
|
||||||
"gnome-shell": "gnome-shell",
|
"gnome-shell": "gnome-shell",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
"nur": "nur",
|
"nur": "nur",
|
||||||
"systems": "systems",
|
"systems": "systems_2",
|
||||||
"tinted-foot": "tinted-foot",
|
"tinted-foot": "tinted-foot",
|
||||||
"tinted-kitty": "tinted-kitty",
|
"tinted-kitty": "tinted-kitty",
|
||||||
"tinted-schemes": "tinted-schemes",
|
"tinted-schemes": "tinted-schemes",
|
||||||
@@ -264,11 +269,11 @@
|
|||||||
"tinted-zed": "tinted-zed"
|
"tinted-zed": "tinted-zed"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1765897595,
|
"lastModified": 1766440186,
|
||||||
"narHash": "sha256-NgTRxiEC5y96zrhdBygnY+mSzk5FWMML39PcRGVJmxg=",
|
"narHash": "sha256-7B/dntEDan+pMB8B/sG6599f3mQaySAJL+c9NhdMP7k=",
|
||||||
"owner": "danth",
|
"owner": "danth",
|
||||||
"repo": "stylix",
|
"repo": "stylix",
|
||||||
"rev": "e6829552d4bb659ebab00f08c61d8c62754763f3",
|
"rev": "844294a58ef0badb3067c4f2fe063030537eb624",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -292,6 +297,21 @@
|
|||||||
"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"
|
||||||
|
}
|
||||||
|
},
|
||||||
"tinted-foot": {
|
"tinted-foot": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
|||||||
13
flake.nix
13
flake.nix
@@ -2,16 +2,17 @@
|
|||||||
description = "🥶";
|
description = "🥶";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
# 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.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";
|
lazyvim.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
# nixvim.url = "github:nix-community/nixvim";
|
lazyvim.url = "github:pfassina/lazyvim-nix";
|
||||||
|
stylix.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
stylix.url = "github:danth/stylix";
|
stylix.url = "github:danth/stylix";
|
||||||
|
# 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";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs: let
|
outputs = inputs: let
|
||||||
|
|||||||
@@ -1,11 +1,34 @@
|
|||||||
{ config
|
{ inputs, config, lib, pkgs, ... }:
|
||||||
, lib
|
{
|
||||||
, pkgs
|
imports = [ inputs.lazyvim.homeManagerModules.default ];
|
||||||
, ...
|
programs.lazyvim = {
|
||||||
}: {
|
|
||||||
programs.neovim = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
configFiles = ./lua;
|
||||||
|
|
||||||
|
extras = {
|
||||||
|
lang = {
|
||||||
|
go.enable = true;
|
||||||
|
clangd.enable = true;
|
||||||
|
rust.enable = true;
|
||||||
|
typescript.enable = true;
|
||||||
|
python.enable = true;
|
||||||
|
tailwind.enable = true;
|
||||||
|
java.enable = true;
|
||||||
|
json.enable = true;
|
||||||
|
yaml.enable = true;
|
||||||
|
toml.enable = true;
|
||||||
|
docker.enable = true;
|
||||||
|
kotlin.enable = true;
|
||||||
|
dart.enable = true;
|
||||||
|
nix.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
|
# All
|
||||||
|
tree-sitter
|
||||||
|
|
||||||
# Go
|
# Go
|
||||||
gopls
|
gopls
|
||||||
gofumpt
|
gofumpt
|
||||||
@@ -49,185 +72,10 @@
|
|||||||
prettierd
|
prettierd
|
||||||
nodePackages.prettier
|
nodePackages.prettier
|
||||||
|
|
||||||
|
# Data formats
|
||||||
jq #JSON
|
jq #JSON
|
||||||
taplo #TOML
|
taplo #TOML
|
||||||
yamlfmt #YAML
|
yamlfmt #YAML
|
||||||
];
|
];
|
||||||
|
|
||||||
plugins = with pkgs.vimPlugins; [
|
|
||||||
lazy-nvim
|
|
||||||
];
|
|
||||||
|
|
||||||
extraLuaConfig =
|
|
||||||
let
|
|
||||||
plugins = with pkgs.vimPlugins; [
|
|
||||||
LazyVim
|
|
||||||
bufferline-nvim
|
|
||||||
cmp_luasnip
|
|
||||||
conform-nvim
|
|
||||||
dashboard-nvim
|
|
||||||
flash-nvim
|
|
||||||
friendly-snippets
|
|
||||||
gitsigns-nvim
|
|
||||||
lualine-nvim
|
|
||||||
neo-tree-nvim
|
|
||||||
neoconf-nvim
|
|
||||||
neodev-nvim
|
|
||||||
noice-nvim
|
|
||||||
nui-nvim
|
|
||||||
nvim-lint
|
|
||||||
nvim-lspconfig
|
|
||||||
nvim-notify
|
|
||||||
nvim-spectre
|
|
||||||
nvim-treesitter
|
|
||||||
nvim-treesitter-context
|
|
||||||
nvim-ts-autotag
|
|
||||||
nvim-ts-context-commentstring
|
|
||||||
nvim-web-devicons
|
|
||||||
persistence-nvim
|
|
||||||
plenary-nvim
|
|
||||||
todo-comments-nvim
|
|
||||||
tokyonight-nvim
|
|
||||||
trouble-nvim
|
|
||||||
vim-illuminate
|
|
||||||
vim-startuptime
|
|
||||||
which-key-nvim
|
|
||||||
fzf-lua
|
|
||||||
snacks-nvim
|
|
||||||
{
|
|
||||||
name = "lazydev.nvim";
|
|
||||||
path = lazydev-nvim;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "blink.cmp";
|
|
||||||
path = blink-cmp;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "LuaSnip";
|
|
||||||
path = luasnip;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "mini.ai";
|
|
||||||
path = mini-nvim;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "mini.bufremove";
|
|
||||||
path = mini-nvim;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "mini.comment";
|
|
||||||
path = mini-nvim;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "mini.indentscope";
|
|
||||||
path = mini-nvim;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "mini.pairs";
|
|
||||||
path = mini-nvim;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "mini.surround";
|
|
||||||
path = mini-nvim;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "mini.icons";
|
|
||||||
path = mini-icons;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "grug-far.nvim";
|
|
||||||
path = grug-far-nvim;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
mkEntryFromDrv = drv:
|
|
||||||
if lib.isDerivation drv
|
|
||||||
then {
|
|
||||||
name = "${lib.getName drv}";
|
|
||||||
path = drv;
|
|
||||||
}
|
|
||||||
else drv;
|
|
||||||
lazyPath = pkgs.linkFarm "lazy-plugins" (builtins.map mkEntryFromDrv plugins);
|
|
||||||
in
|
|
||||||
''
|
|
||||||
require("lazy").setup({
|
|
||||||
defaults = {
|
|
||||||
lazy = true,
|
|
||||||
},
|
|
||||||
dev = {
|
|
||||||
-- reuse files from pkgs.vimPlugins.*
|
|
||||||
path = "${lazyPath}",
|
|
||||||
patterns = { "." },
|
|
||||||
-- fallback to download
|
|
||||||
fallback = true,
|
|
||||||
},
|
|
||||||
rocks = {
|
|
||||||
enabled = false,
|
|
||||||
hererocks = false,
|
|
||||||
},
|
|
||||||
spec = {
|
|
||||||
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
|
||||||
-- The following configs are needed for fixing lazyvim on nix
|
|
||||||
-- disable mason.nvim, use programs.neovim.extraPackages
|
|
||||||
{ "mason-org/mason-lspconfig.nvim", enabled = false },
|
|
||||||
{ "mason-org/mason.nvim", enabled = false },
|
|
||||||
-- import/override with your plugins
|
|
||||||
{ import = "lazyvim.plugins.extras.lang.go" },
|
|
||||||
{ import = "lazyvim.plugins.extras.lang.clangd" },
|
|
||||||
{ import = "lazyvim.plugins.extras.lang.rust" },
|
|
||||||
{ import = "lazyvim.plugins.extras.lang.typescript" },
|
|
||||||
{ import = "lazyvim.plugins.extras.lang.python" },
|
|
||||||
{ import = "lazyvim.plugins.extras.lang.tailwind" },
|
|
||||||
{ import = "lazyvim.plugins.extras.lang.java" },
|
|
||||||
{ import = "lazyvim.plugins.extras.lang.json" },
|
|
||||||
{ import = "lazyvim.plugins.extras.lang.yaml" },
|
|
||||||
{ import = "lazyvim.plugins.extras.lang.toml" },
|
|
||||||
{ import = "lazyvim.plugins.extras.lang.docker" },
|
|
||||||
{ import = "lazyvim.plugins.extras.lang.kotlin" },
|
|
||||||
{ import = "lazyvim.plugins.extras.lang.dart" },
|
|
||||||
{ import = "plugins" },
|
|
||||||
-- treesitter handled by xdg.configFile."nvim/parser", put this line at the end of spec to clear ensure_installed
|
|
||||||
{ "nvim-treesitter/nvim-treesitter",
|
|
||||||
opts = function(_, opts)
|
|
||||||
opts.ensure_installed = {}
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# https://github.com/nvim-treesitter/nvim-treesitter#i-get-query-error-invalid-node-type-at-position
|
|
||||||
xdg.configFile."nvim/parser".source =
|
|
||||||
let
|
|
||||||
parsers = pkgs.symlinkJoin {
|
|
||||||
name = "treesitter-parsers";
|
|
||||||
paths =
|
|
||||||
(pkgs.vimPlugins.nvim-treesitter.withPlugins (plugins:
|
|
||||||
with plugins; [
|
|
||||||
bash
|
|
||||||
c
|
|
||||||
go
|
|
||||||
lua
|
|
||||||
rust
|
|
||||||
java
|
|
||||||
dart
|
|
||||||
kotlin
|
|
||||||
python
|
|
||||||
javascript
|
|
||||||
typescript
|
|
||||||
tsx
|
|
||||||
vue
|
|
||||||
html
|
|
||||||
css
|
|
||||||
json
|
|
||||||
yaml
|
|
||||||
toml
|
|
||||||
dockerfile
|
|
||||||
])).dependencies;
|
|
||||||
};
|
|
||||||
in
|
|
||||||
"${parsers}/parser";
|
|
||||||
|
|
||||||
# Normal LazyVim config here, see https://github.com/LazyVim/starter/tree/main/lua
|
|
||||||
xdg.configFile."nvim/lua".source = ./lua;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
-- Autocmds are automatically loaded on the VeryLazy event
|
|
||||||
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
|
|
||||||
--
|
|
||||||
-- Add any additional autocmds here
|
|
||||||
-- with `vim.api.nvim_create_autocmd`
|
|
||||||
--
|
|
||||||
-- Or remove existing autocmds by their group name (which is prefixed with `lazyvim_` for the defaults)
|
|
||||||
-- e.g. vim.api.nvim_del_augroup_by_name("lazyvim_wrap_spell")
|
|
||||||
@@ -1,53 +0,0 @@
|
|||||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
|
||||||
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
|
||||||
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
|
||||||
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
|
||||||
if vim.v.shell_error ~= 0 then
|
|
||||||
vim.api.nvim_echo({
|
|
||||||
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
|
|
||||||
{ out, "WarningMsg" },
|
|
||||||
{ "\nPress any key to exit..." },
|
|
||||||
}, true, {})
|
|
||||||
vim.fn.getchar()
|
|
||||||
os.exit(1)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
vim.opt.rtp:prepend(lazypath)
|
|
||||||
|
|
||||||
require("lazy").setup({
|
|
||||||
spec = {
|
|
||||||
-- add LazyVim and import its plugins
|
|
||||||
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
|
||||||
-- import/override with your plugins
|
|
||||||
{ import = "plugins" },
|
|
||||||
},
|
|
||||||
defaults = {
|
|
||||||
-- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
|
|
||||||
-- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default.
|
|
||||||
lazy = false,
|
|
||||||
-- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
|
|
||||||
-- have outdated releases, which may break your Neovim install.
|
|
||||||
version = false, -- always use the latest git commit
|
|
||||||
-- version = "*", -- try installing the latest stable version for plugins that support semver
|
|
||||||
},
|
|
||||||
install = { colorscheme = { "tokyonight", "habamax" } },
|
|
||||||
checker = {
|
|
||||||
enabled = true, -- check for plugin updates periodically
|
|
||||||
notify = false, -- notify on update
|
|
||||||
}, -- automatically check for plugin updates
|
|
||||||
performance = {
|
|
||||||
rtp = {
|
|
||||||
-- disable some rtp plugins
|
|
||||||
disabled_plugins = {
|
|
||||||
"gzip",
|
|
||||||
-- "matchit",
|
|
||||||
-- "matchparen",
|
|
||||||
-- "netrwPlugin",
|
|
||||||
"tarPlugin",
|
|
||||||
"tohtml",
|
|
||||||
"tutor",
|
|
||||||
"zipPlugin",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
return {
|
|
||||||
{
|
|
||||||
"LazyVim/LazyVim",
|
|
||||||
opts = {
|
|
||||||
treesitter = false,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"nvim-treesitter/nvim-treesitter",
|
|
||||||
event = { "BufReadPost", "BufNewFile" },
|
|
||||||
opts = {
|
|
||||||
ensure_installed = {},
|
|
||||||
auto_install = false,
|
|
||||||
highlight = { enable = true },
|
|
||||||
indent = { enable = true },
|
|
||||||
incremental_selection = {
|
|
||||||
enable = true,
|
|
||||||
keymaps = {
|
|
||||||
init_selection = "gnn",
|
|
||||||
node_incremental = "grn",
|
|
||||||
scope_incremental = "grc",
|
|
||||||
node_decremental = "grm",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
config = function(_, opts)
|
|
||||||
require("nvim-treesitter.configs").setup(opts)
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
@@ -7,7 +7,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
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,57 +1,65 @@
|
|||||||
{
|
{
|
||||||
# Specific Use Cases
|
# -------------------- Hardware --------------------
|
||||||
## Hardware related
|
# See: https://github.com/blueman-project/blueman
|
||||||
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
|
|
||||||
|
|
||||||
SingBox = true;
|
# See: https://nixos.wiki/wiki/Nvidia
|
||||||
|
GPU-Nvidia = false;
|
||||||
|
|
||||||
Power-control = "TLP";
|
# See: https://nixos.wiki/wiki/Intel_Graphics
|
||||||
### Possible options: PPD ; TLP
|
GPU-Intel = false;
|
||||||
|
|
||||||
## Software related
|
# See: https://github.com/linrunner/TLP
|
||||||
QEMU-VM-Use-Case = true;
|
Power-control = "TLP"; ## Possible options: PPD ; TLP
|
||||||
### See https://github.com/qemu/qemu ; https://github.com/virt-manager/virt-manager
|
|
||||||
|
|
||||||
Database-Use-Case = true;
|
# -------------------- System --------------------
|
||||||
|
# See https://nixos.wiki/wiki/Bootloader
|
||||||
# Options
|
# See: https://search.nixos.org/options?show=boot.loader.grub.mirroredBoots
|
||||||
## System related
|
BootLoader = "systemd-boot"; ## Possible options: grub ; grub-mirror ; systemd-boot
|
||||||
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://search.nixos.org/options?show=boot.kernelPackages
|
||||||
|
# See: https://www.nyx.chaotic.cx/#using-sched-ext-schedulers
|
||||||
KernelPackages = "linuxPackages_zen";
|
KernelPackages = "linuxPackages_zen";
|
||||||
### 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
|
|
||||||
|
|
||||||
|
# See: https://mynixos.com/nixpkgs/option/system.stateVersion
|
||||||
StateVersion = "26.05";
|
StateVersion = "26.05";
|
||||||
### See https://mynixos.com/nixpkgs/option/system.stateVersion
|
|
||||||
|
|
||||||
|
# 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";
|
TimeZone = "Asia/Singapore";
|
||||||
### See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
||||||
|
|
||||||
## Wayland related
|
# -------------------- Display --------------------
|
||||||
|
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/
|
|
||||||
|
|
||||||
OutputSettings = "output * scale 1";
|
# -------------------- Software --------------------
|
||||||
### OutputSettings For sway See https://github.com/swaywm/sway/wiki#display-configuration
|
# See: https://sing-box.sagernet.org
|
||||||
|
SingBox = true;
|
||||||
|
|
||||||
ScaleLevel = "1";
|
# See: https://github.com/qemu/qemu
|
||||||
### For Hyprland see https://wiki.hyprland.org/Configuring/XWayland/#hidpi-xwayland
|
# See: https://github.com/virt-manager/virt-manager
|
||||||
### For sway see https://github.com/swaywm/sway/wiki#hidpi
|
QEMU-VM-Use-Case = true;
|
||||||
|
|
||||||
WM = "niri";
|
# See: https://github.com/dbeaver/dbeaver
|
||||||
### Possible options: Hyprland ; niri ; sway
|
Database-Use-Case = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,63 +1,62 @@
|
|||||||
{
|
{
|
||||||
# Specific Use Cases
|
# -------------------- Hardware --------------------
|
||||||
## Hardware related
|
# See: https://github.com/blueman-project/blueman
|
||||||
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
|
|
||||||
|
|
||||||
HotSpot-Use-Case = false;
|
# See: https://github.com/linrunner/TLP
|
||||||
### See https://nixos.wiki/wiki/Internet_Connection_Sharing
|
Power-control = "PPD"; ## Possible options: PPD ; TLP
|
||||||
|
|
||||||
|
# -------------------- 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;
|
||||||
|
|
||||||
Power control = "PPD";
|
# See: https://github.com/qemu/qemu
|
||||||
### Possible options: PPD ; TLP
|
# See: https://github.com/virt-manager/virt-manager
|
||||||
|
|
||||||
## Software related
|
|
||||||
QEMU-VM-Use-Case = false;
|
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_zen";
|
|
||||||
### 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
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ in {
|
|||||||
wget
|
wget
|
||||||
aria2
|
aria2
|
||||||
yt-dlp
|
yt-dlp
|
||||||
|
openssl
|
||||||
|
|
||||||
#Android
|
#Android
|
||||||
xxd
|
xxd
|
||||||
@@ -90,7 +91,12 @@ in {
|
|||||||
jdk17
|
jdk17
|
||||||
python312
|
python312
|
||||||
pnpm
|
pnpm
|
||||||
|
bun
|
||||||
nodejs_24
|
nodejs_24
|
||||||
|
|
||||||
|
# Agent
|
||||||
|
codex
|
||||||
|
gemini-cli
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user