mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 19:47:47 +00:00
NeoVim: Add NvChad
This commit is contained in:
parent
88ca5159a3
commit
eb89e6a38a
5 changed files with 41 additions and 2 deletions
6
.gitignore
vendored
6
.gitignore
vendored
|
@ -5,19 +5,23 @@
|
||||||
!machines/asus/docker/
|
!machines/asus/docker/
|
||||||
!machines/asus/git/
|
!machines/asus/git/
|
||||||
!machines/asus/neovim/
|
!machines/asus/neovim/
|
||||||
|
!machines/asus/neovim/config/
|
||||||
!machines/asus/networkmanager/
|
!machines/asus/networkmanager/
|
||||||
!machines/asus/nixpkgs/
|
!machines/asus/nixpkgs/
|
||||||
!machines/asus/nushell/
|
!machines/asus/nushell/
|
||||||
!machines/asus/pipewire/
|
!machines/asus/pipewire/
|
||||||
!machines/asus/users/
|
!machines/asus/users/
|
||||||
# !machines/asus/plasma/
|
|
||||||
!machines/asus/system/
|
!machines/asus/system/
|
||||||
!machines/asus/xserver/
|
!machines/asus/xserver/
|
||||||
|
|
||||||
|
!packages/
|
||||||
|
!packages/nvchad/
|
||||||
|
|
||||||
!flake.lock
|
!flake.lock
|
||||||
!.editorconfig
|
!.editorconfig
|
||||||
!.gitignore
|
!.gitignore
|
||||||
|
|
||||||
|
!*.lua
|
||||||
!*.md
|
!*.md
|
||||||
!*.nu
|
!*.nu
|
||||||
!*.nix
|
!*.nix
|
||||||
|
|
|
@ -37,6 +37,8 @@
|
||||||
{
|
{
|
||||||
nixosConfigurations.${hostName} = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.${hostName} = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
|
lib = nixpkgs.lib;
|
||||||
|
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
system = hostPlatform;
|
system = hostPlatform;
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
|
|
1
machines/asus/neovim/config/init.lua
Normal file
1
machines/asus/neovim/config/init.lua
Normal file
|
@ -0,0 +1 @@
|
||||||
|
-- TODO
|
|
@ -1,4 +1,4 @@
|
||||||
{ homeManagerConfiguration, ... }:
|
{ pkgs, lib, homeManagerConfiguration, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
# Nuking nano out of orbit.
|
# Nuking nano out of orbit.
|
||||||
|
@ -20,4 +20,16 @@
|
||||||
# lunarVim
|
# lunarVim
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# NvChad
|
||||||
|
home.file.".config/nvim" = {
|
||||||
|
source = pkgs.callPackage ../../../packages/nvchad {};
|
||||||
|
recursive = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
home.file.".config/nvim/lua/custom" = {
|
||||||
|
source = ./config;
|
||||||
|
recursive = true;
|
||||||
|
force = true;
|
||||||
|
};
|
||||||
})
|
})
|
||||||
|
|
20
packages/nvchad/default.nix
Normal file
20
packages/nvchad/default.nix
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{ stdenvNoCC, fetchFromGitHub, ...}:
|
||||||
|
|
||||||
|
stdenvNoCC.mkDerivation rec {
|
||||||
|
name = "nvchad";
|
||||||
|
version = "2.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "NvChad";
|
||||||
|
repo = "NvChad";
|
||||||
|
rev = "refs/heads/v${version}";
|
||||||
|
sha256 = "sha256-bfDNMy4pjdSwYAjyhN09fGLJguoooJAQm1nKneCpKcU=";
|
||||||
|
};
|
||||||
|
|
||||||
|
preferLocalBuild = true;
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out
|
||||||
|
cp -r ./ $out
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue