From da7d36c54aeb68e65dd1fc1eb29b941f8fd4e422 Mon Sep 17 00:00:00 2001 From: alexion Date: Thu, 3 Sep 2026 16:29:04 -0400 Subject: [PATCH] fix(fish): allow hosts without env vars --- configs/nixos/modules/shell/fish/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/nixos/modules/shell/fish/default.nix b/configs/nixos/modules/shell/fish/default.nix index d91b313..8a4916a 100644 --- a/configs/nixos/modules/shell/fish/default.nix +++ b/configs/nixos/modules/shell/fish/default.nix @@ -8,8 +8,8 @@ let cfg = config.modules.shell.fish; user = config.user.name; - shortcuts = config.registry.shell-shortcut.${config.networking.hostName}; - envVars = config.registry.env-var.${config.networking.hostName}; + shortcuts = lib.attrByPath [ config.networking.hostName ] { } config.registry.shell-shortcut; + envVars = lib.attrByPath [ config.networking.hostName ] { } config.registry.env-var; commandsOf = shortcuts: lib.mapAttrs (_name: shortcut: shortcut.command) shortcuts; exportEnvVar = name: value: '' set -gx ${name} ${lib.escapeShellArg value}