rb
This commit is contained in:
parent
af7a3634ce
commit
fabafd9623
|
@ -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
1
home/my_nvchad_config
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 82c9711f62025c16d138c0bc6e8b7cf46ca6ccc5
|
|
@ -7,6 +7,5 @@
|
|||
./misc
|
||||
./gdm
|
||||
./ssh
|
||||
./nvchad
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,22 +1,21 @@
|
|||
{ stdenv, pkgs, fetchFromGithub, ... }:
|
||||
|
||||
{
|
||||
nvchad = stdenv.mkDerivation rec {
|
||||
pname = "nvchad";
|
||||
version = "";
|
||||
dontBuild = true;
|
||||
programs.neovim.enable = true;
|
||||
|
||||
xdg.configFile."nvim".source = pkgs.stdenv.mkDerivation {
|
||||
name = "NvChad";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "NvChad";
|
||||
repo = "NvChad";
|
||||
rev = "c8777040fbda6a656f149877b796d120085cd918";
|
||||
sha256 = "sha256-J4SGwo/XkKFXvq+Va1EEBm8YOQwIPPGWH3JqCGpFnxY=";
|
||||
rev = "f17e83010f25784b58dea175c6480b3a8225a3e9";
|
||||
hash = "sha256-P5TRjg603/7kOVNFC8nXfyciNRLsIeFvKsoRCIwFP3I=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
# Fetch the whole repo and put it in $out
|
||||
mkdir $out
|
||||
cp -aR $src/* $out/
|
||||
mkdir -p $out
|
||||
cp -r ./* $out/
|
||||
cd $out/
|
||||
cp -r ${./my_nvchad_config} $out/lua/custom
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -55,6 +55,5 @@
|
|||
boxbuddy
|
||||
distrobox
|
||||
neovim
|
||||
stdenv.mkDerivation
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue