Skip to content

Commit

Permalink
Fix with avoiding missing xdg.stateHome
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Oct 22, 2024
1 parent 2a63234 commit 9ae28ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion home-manager/vim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
}:

{
xdg.stateFile."vim/.keep".text = "Keep this directory because of home-manager and vim does not create the file if directory is missing";
# TODO: Prefer xdg.stateFile since home-manager release-24.11. See https://github.com/nix-community/home-manager/pull/5779
home.file."${config.xdg.stateHome}/vim/.keep".text = "Keep this directory because of home-manager and vim does not create the file if directory is missing";

# https://github.com/nix-community/home-manager/blob/release-24.05/modules/programs/vim.nix
# https://nixos.wiki/wiki/Vim
Expand Down

0 comments on commit 9ae28ba

Please sign in to comment.