add nixvim

This commit is contained in:
Kim, Jimin 2025-03-08 19:59:47 +09:00
parent 7ed8054332
commit c7b210b190
Signed by: pomp
GPG key ID: D3932F82A0667A3B
6 changed files with 180 additions and 11 deletions

View file

@ -2,10 +2,13 @@
"cSpell.words": [
"anthy",
"anytype",
"bufferline",
"cachix",
"chillhop",
"colorschemes",
"dconf",
"devenv",
"devicons",
"dotfiles",
"fontconfig",
"gamemode",
@ -15,6 +18,7 @@
"Hanja",
"ibus",
"justfile",
"keymaps",
"killall",
"lunarclient",
"Meslo",
@ -23,8 +27,10 @@
"nixfmt",
"nixos",
"nixpkgs",
"nixvim",
"nordified",
"Noto",
"onedark",
"Östberg",
"papirus",
"pipewire",
@ -32,6 +38,7 @@
"pompup",
"pompydev",
"pulseaudio",
"Rustc",
"tailscale",
"uniemoji",
"vboxusers",

130
flake.lock generated
View file

@ -1,5 +1,44 @@
{
"nodes": {
"flake-parts": {
"inputs": {
"nixpkgs-lib": [
"nixvim",
"nixpkgs"
]
},
"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-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"
}
},
"home-manager": {
"inputs": {
"nixpkgs": [
@ -20,6 +59,34 @@
"type": "github"
}
},
"ixx": {
"inputs": {
"flake-utils": [
"nixvim",
"nuschtosSearch",
"flake-utils"
],
"nixpkgs": [
"nixvim",
"nuschtosSearch",
"nixpkgs"
]
},
"locked": {
"lastModified": 1729958008,
"narHash": "sha256-EiOq8jF4Z/zQe0QYVc3+qSKxRK//CFHMB84aYrYGwEs=",
"owner": "NuschtOS",
"repo": "ixx",
"rev": "9fd01aad037f345350eab2cd45e1946cc66da4eb",
"type": "github"
},
"original": {
"owner": "NuschtOS",
"ref": "v0.0.6",
"repo": "ixx",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1741338769,
@ -36,10 +103,71 @@
"type": "github"
}
},
"nixvim": {
"inputs": {
"flake-parts": "flake-parts",
"nixpkgs": [
"nixpkgs"
],
"nuschtosSearch": "nuschtosSearch"
},
"locked": {
"lastModified": 1741098523,
"narHash": "sha256-gXDSXDr6tAb+JgxGMvcEjKC9YO8tVOd8hMMZHJLyQ6Q=",
"owner": "nix-community",
"repo": "nixvim",
"rev": "03065fd4708bfdf47dd541d655392a60daa25ded",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixvim",
"type": "github"
}
},
"nuschtosSearch": {
"inputs": {
"flake-utils": "flake-utils",
"ixx": "ixx",
"nixpkgs": [
"nixvim",
"nixpkgs"
]
},
"locked": {
"lastModified": 1738508923,
"narHash": "sha256-4DaDrQDAIxlWhTjH6h/+xfG05jt3qDZrZE/7zDLQaS4=",
"owner": "NuschtOS",
"repo": "search",
"rev": "86e2038290859006e05ca7201425ea5b5de4aecb",
"type": "github"
},
"original": {
"owner": "NuschtOS",
"repo": "search",
"type": "github"
}
},
"root": {
"inputs": {
"home-manager": "home-manager",
"nixpkgs": "nixpkgs"
"nixpkgs": "nixpkgs",
"nixvim": "nixvim"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
}
},

View file

@ -3,7 +3,10 @@
inputs = {
nixpkgs.url = "github:pompydev/nixpkgs/master";
nixvim = {
url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
@ -11,7 +14,7 @@
};
outputs =
{ ... }@inputs:
{ nixvim, ... }@inputs:
let
nixpkgs = inputs.nixpkgs.legacyPackages."x86_64-linux".applyPatches {
@ -31,6 +34,7 @@
modules = [
./hosts/desktop/configuration.nix
nixvim.nixosModules.nixvim
];
};
@ -42,6 +46,7 @@
modules = [
./hosts/laptop/configuration.nix
nixvim.nixosModules.nixvim
];
};

View file

@ -30,6 +30,7 @@ args@{
../../modules/nixos/mongodb-compass.nix
../../modules/nixos/nautilus.nix
(import ../../modules/nixos/nix.nix (args // { user = "pomp"; }))
../../modules/nixos/nixvim.nix
../../modules/nixos/obs.nix
../../modules/nixos/otd.nix
(import ../../modules/nixos/razer.nix (args // { user = "pomp"; }))
@ -59,7 +60,6 @@ args@{
seabird
## General CLI / TUI
wget
vim
btop
nvitop
tree
@ -147,9 +147,6 @@ args@{
# System
systemd.services.NetworkManager-wait-online.enable = false;
environment.sessionVariables = {
EDITOR = "vim";
};
boot.loader.systemd-boot.enable = true;
boot.kernelParams = [
"quiet"

View file

@ -19,6 +19,7 @@ args@{
../../modules/nixos/media.nix
../../modules/nixos/nautilus.nix
(import ../../modules/nixos/nix.nix (args // { user = "pomp"; }))
../../modules/nixos/nixvim.nix
(import ../../modules/nixos/shell.nix (args // { user = "pomp"; }))
(import ../../modules/nixos/virtualbox.nix (args // { user = "pomp"; }))
../../modules/nixos/vlc.nix
@ -40,7 +41,6 @@ args@{
];
environment.systemPackages = with pkgs; [
# Dev
vim
hotspot
jetbrains-toolbox
@ -84,9 +84,6 @@ args@{
# System
systemd.services.NetworkManager-wait-online.enable = false;
environment.sessionVariables = {
EDITOR = "vim";
};
boot.kernelParams = [
"quiet"
"splash"

35
modules/nixos/nixvim.nix Normal file
View file

@ -0,0 +1,35 @@
{ ... }:
{
# https://github.com/nix-community/nixvim
programs.nixvim = {
enable = true;
colorschemes.onedark.enable = true;
keymaps = [ ];
plugins = {
lsp = {
enable = true;
servers = {
rust_analyzer = {
enable = true;
installCargo = true;
installRustc = true;
};
nixd.enable = true;
};
};
telescope = {
enable = true;
extensions = {
file-browser.enable = true;
fzf-native.enable = true;
};
};
treesitter.enable = true;
bufferline.enable = true;
web-devicons.enable = true;
};
};
}