Move more things to xdg paths

This commit is contained in:
Bun 2025-05-14 14:57:32 -04:00
parent 04560dfbc5
commit c41543edcf
23 changed files with 491 additions and 566 deletions

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
{
programs.zsh = {
enable = true;
@ -16,6 +16,7 @@
};
history = {
append = true;
expireDuplicatesFirst = true;
ignoreAllDups = true;
ignoreSpace = true;
path = "$ZDOTDIR/.zsh_history";
@ -26,5 +27,6 @@
'';
};
home.persistence."${config.xdg.userDirs.extraConfig.XDG_PERSIST_DIR}".directories = [ "state/.config/zsh" ];
home.persistence."${config.xdg.userDirs.extraConfig.XDG_PERSIST_DIR}".directories = with lib; with config.home; with config.xdg;
[ "state/${removePrefix "${homeDirectory}/" configHome}/zsh" ];
}