fix(fish): allow hosts without env vars
This commit was merged in pull request #7.
This commit is contained in:
@@ -8,8 +8,8 @@
|
|||||||
let
|
let
|
||||||
cfg = config.modules.shell.fish;
|
cfg = config.modules.shell.fish;
|
||||||
user = config.user.name;
|
user = config.user.name;
|
||||||
shortcuts = config.registry.shell-shortcut.${config.networking.hostName};
|
shortcuts = lib.attrByPath [ config.networking.hostName ] { } config.registry.shell-shortcut;
|
||||||
envVars = config.registry.env-var.${config.networking.hostName};
|
envVars = lib.attrByPath [ config.networking.hostName ] { } config.registry.env-var;
|
||||||
commandsOf = shortcuts: lib.mapAttrs (_name: shortcut: shortcut.command) shortcuts;
|
commandsOf = shortcuts: lib.mapAttrs (_name: shortcut: shortcut.command) shortcuts;
|
||||||
exportEnvVar = name: value: ''
|
exportEnvVar = name: value: ''
|
||||||
set -gx ${name} ${lib.escapeShellArg value}
|
set -gx ${name} ${lib.escapeShellArg value}
|
||||||
|
|||||||
Reference in New Issue
Block a user