Add SSH configuration, move more things to xdg dirs
This commit is contained in:
parent
48ce4411be
commit
517b0a5981
14 changed files with 67 additions and 35 deletions
|
@ -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" ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue