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
];
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.homeDirectory = "/home/joy";
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;
}

1
home/my_nvchad_config Submodule

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

View file

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

View file

@ -1,23 +1,22 @@
{ stdenv, pkgs, fetchFromGithub, ... }:
{
nvchad = stdenv.mkDerivation rec {
pname = "nvchad";
version = "";
dontBuild = true;
programs.neovim.enable = true;
src = pkgs.fetchFromGitHub {
owner = "NvChad";
repo = "NvChad";
rev = "c8777040fbda6a656f149877b796d120085cd918";
sha256 = "sha256-J4SGwo/XkKFXvq+Va1EEBm8YOQwIPPGWH3JqCGpFnxY=";
};
installPhase = ''
# Fetch the whole repo and put it in $out
mkdir $out
cp -aR $src/* $out/
'';
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
'';
};
}

View file

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