It looks like HOSTNAME is something Bash provides but not a standard environment variable. ZSH and Fish doesn’t have it.

Reply to this note

Please Login to reply.

Discussion

ohhh

Ugly hack it is.

let

hostname = builtins.readFile ./whereami;

hostConfigPath = ./${hostname};

hostConfig = if builtins.pathExists hostConfigPath

then import hostConfigPath

else {};

in