1
0
Fork 0
forked from Bun/nixos-config

Add SSH configuration, move more things to xdg dirs

This commit is contained in:
Bun 2025-05-16 02:45:17 -04:00
parent 48ce4411be
commit 517b0a5981
14 changed files with 67 additions and 35 deletions

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
{
programs.neovim = {
enable = true;
@ -103,7 +103,7 @@
set mouse=a
set undofile
set undodir=$HOME/.local/share/nvim/undo
set undodir=${config.xdg.dataHome}/nvim/undo
set undolevels=100
set undoreload=10000
@ -115,6 +115,8 @@
home = {
sessionVariables.MANPAGER = "nvim +Man!";
persistence."${config.xdg.userDirs.extraConfig.XDG_PERSIST_DIR}".directories = [ "state/.local/share/nvim/undo" ];
persistence."${config.xdg.userDirs.extraConfig.XDG_PERSIST_DIR}".directories =
with lib; with config.home; with config.xdg;
[ "state/${removePrefix "${homeDirectory}/" dataHome}/nvim/undo" ];
};
}