This commit is contained in:
joy 2024-07-03 22:40:31 +02:00
parent af7a3634ce
commit fabafd9623
5 changed files with 34 additions and 26 deletions

View file

@ -13,6 +13,24 @@
inputs.ags.homeManagerModules.default inputs.ags.homeManagerModules.default
]; ];
programs.neovim.enable = true;
xdg.configFile."nvim".source = pkgs.stdenv.mkDerivation {
name = "NvChad";
src = pkgs.fetchFromGitHub {
owner = "NvChad";
repo = "NvChad";
rev = "f17e83010f25784b58dea175c6480b3a8225a3e9";
hash = "sha256-P5TRjg603/7kOVNFC8nXfyciNRLsIeFvKsoRCIwFP3I=";
};
installPhase = ''
mkdir -p $out
cp -r ./* $out/
cd $out/
cp -r ${./my_nvchad_config} $out/lua/custom
'';
};
home.username = "joy"; home.username = "joy";
home.homeDirectory = "/home/joy"; home.homeDirectory = "/home/joy";
home.stateVersion = "23.11"; home.stateVersion = "23.11";
@ -22,14 +40,6 @@
}; };
# basically copy the whole nvchad that is fetched from github to ~/.config/nvim
xdg.configFile."nvim/" = {
source = (pkgs.callPackage ./nvchad/default.nix{}).nvchad;
};
colorScheme = inputs.nix-colors.colorSchemes.gruvbox-dark-medium; colorScheme = inputs.nix-colors.colorSchemes.gruvbox-dark-medium;
} }

1
home/my_nvchad_config Submodule

@ -0,0 +1 @@
Subproject commit 82c9711f62025c16d138c0bc6e8b7cf46ca6ccc5

View file

@ -7,6 +7,5 @@
./misc ./misc
./gdm ./gdm
./ssh ./ssh
./nvchad
]; ];
} }

View file

@ -1,22 +1,21 @@
{ stdenv, pkgs, fetchFromGithub, ... }: { stdenv, pkgs, fetchFromGithub, ... }:
{ {
nvchad = stdenv.mkDerivation rec { programs.neovim.enable = true;
pname = "nvchad";
version = "";
dontBuild = true;
xdg.configFile."nvim".source = pkgs.stdenv.mkDerivation {
name = "NvChad";
src = pkgs.fetchFromGitHub { src = pkgs.fetchFromGitHub {
owner = "NvChad"; owner = "NvChad";
repo = "NvChad"; repo = "NvChad";
rev = "c8777040fbda6a656f149877b796d120085cd918"; rev = "f17e83010f25784b58dea175c6480b3a8225a3e9";
sha256 = "sha256-J4SGwo/XkKFXvq+Va1EEBm8YOQwIPPGWH3JqCGpFnxY="; hash = "sha256-P5TRjg603/7kOVNFC8nXfyciNRLsIeFvKsoRCIwFP3I=";
}; };
installPhase = '' installPhase = ''
# Fetch the whole repo and put it in $out mkdir -p $out
mkdir $out cp -r ./* $out/
cp -aR $src/* $out/ cd $out/
cp -r ${./my_nvchad_config} $out/lua/custom
''; '';
}; };
} }

View file

@ -55,6 +55,5 @@
boxbuddy boxbuddy
distrobox distrobox
neovim neovim
stdenv.mkDerivation
]; ];
} }