From bc8967cdb03c9d805288dd80b845b16ef8c4111b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaqu=C3=ADn=20Tri=C3=B1anes?= Date: Wed, 17 Sep 2025 13:18:57 +0200 Subject: [PATCH] gpg-agent: write nushell initialization to config file According to the nushell docs (https://www.nushell.sh/book/configuration.html#configuration-overview): "The first file loaded is env.nu, which was historically used to override environment variables. However, the current "best-practice" recommendation is to set all environment variables (and other configuration) using config.nu and the autoload directories below." --- modules/services/gpg-agent.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/services/gpg-agent.nix b/modules/services/gpg-agent.nix index 81de2afa0..7c0141ac6 100644 --- a/modules/services/gpg-agent.nix +++ b/modules/services/gpg-agent.nix @@ -377,7 +377,7 @@ in programs.zsh.initContent = mkIf cfg.enableZshIntegration gpgZshInitStr; programs.fish.interactiveShellInit = mkIf cfg.enableFishIntegration gpgFishInitStr; - programs.nushell.extraEnv = mkIf cfg.enableNushellIntegration gpgNushellInitStr; + programs.nushell.extraConfig = mkIf cfg.enableNushellIntegration gpgNushellInitStr; } (mkIf (cfg.sshKeys != null) {