initial switch to hyprland
This commit is contained in:
parent
1daf9cf44b
commit
6c8c5c43d4
41 changed files with 562 additions and 501 deletions
|
|
@ -3,35 +3,12 @@
|
|||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
gitDir = "${pkgs.git}/bin/git";
|
||||
nvim = "${config.home.homeDirectory}/.config/nvim";
|
||||
in {
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
}: {
|
||||
programs.neovim.enable = true;
|
||||
home.packages = with pkgs; [
|
||||
git
|
||||
luajit
|
||||
luaPackages.luarocks
|
||||
tree-sitter
|
||||
];
|
||||
|
||||
home.sessionPath = ["$HOME/.local/share/nvim/mason/bin"];
|
||||
|
||||
home.activation.nvimConfig = lib.hm.dag.entryAfter ["writeBoundary"] ''
|
||||
if [ ! -d "${nvim}/.git" ]; then
|
||||
${gitDir} clone --depth 1 \
|
||||
https://github.com/alsaiduq-lab/nvim-dotfiles.git "${nvim}"
|
||||
echo "Neovim config at ${nvim} was installed"
|
||||
else
|
||||
if ${gitDir} -C "${nvim}" pull --ff-only origin master \
|
||||
| grep -q 'Already up to date.'; then
|
||||
echo "Neovim config at ${nvim} is unchanged"
|
||||
else
|
||||
echo "Neovim config at ${nvim} was updated"
|
||||
fi
|
||||
fi
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue