nixos-config/config/programs/vim/default.nix

21 lines
412 B
Nix
Raw Normal View History

2023-04-13 06:57:08 +00:00
desktop: {
pkgs,
nix-neovim,
...
}: let
myNeovim = nix-neovim.buildNeovim {
configuration = import ./configuration.nix desktop;
inherit pkgs;
};
in {
home.packages = [
myNeovim
];
systemd.user.tmpfiles.rules = [
"d %h/.cache/nvim/undo-files 0700 %u %g mM:1w -"
"d %h/.cache/nvim/swap-files 0700 %u %g mM:1w -"
"d %h/.cache/nvim/backup-files 0700 %u %g mM:1w -"
];
}