From b5fe8d4923c7cec24772d5769f703b279110020c Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Thu, 21 Sep 2023 11:23:22 -0700 Subject: [PATCH] fixed yazi configuration not applying --- hosts/configuration.nix | 11 +++++++++-- modules/yazi.nix | 13 ++++++++----- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/hosts/configuration.nix b/hosts/configuration.nix index 0fa2845..aa5df80 100644 --- a/hosts/configuration.nix +++ b/hosts/configuration.nix @@ -13,6 +13,15 @@ enableKwallet = true; }; + # Some programs look for session variables to store config files at + # (Looking at you home-manager yazi) + environment.sessionVariables = rec { + XDG_CACHE_HOME = "$HOME/.cache"; + XDG_CONFIG_HOME = "$HOME/.config"; + XDG_DATA_HOME = "$HOME/.local/share"; + XDG_STATE_HOME = "$HOME/.local/state"; + }; + services.xserver = { enable = true; layout = "us"; @@ -83,7 +92,6 @@ opentabletdriver.enable = true; steam-hardware.enable = true; }; - sound = { enable = false; @@ -99,7 +107,6 @@ #jack.enable = true; }; - # Enable CUPS to print documents. services.printing.enable = true; diff --git a/modules/yazi.nix b/modules/yazi.nix index 586bf75..7c58af2 100644 --- a/modules/yazi.nix +++ b/modules/yazi.nix @@ -6,11 +6,14 @@ enable = true; enableZshIntegration = true; settings = { - sort_by = "natural"; - sort_sensitive = false; - sort_dir_first = true; - show_hidden = true; - show_symlink = true; + manager = { + sort_by = "natural"; + sort_sensitive = false; + sort_dir_first = true; + show_hidden = true; + show_symlink = true; + sort_reverse = false; + }; }; };