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