Oddbean new post about | logout
 Why this doesn’t work? What gives? #nix #nixos
https://image.nostr.build/f90f4d5e4be53011831f434f5a333d2ba50eccbcafa013ac02e7dc8292fa6d4a.jpg 
 weird... reproduced.

code is:

    v.mkString(state.settings.restrictEval || state.settings.pureEval ? "" : getEnv(name).value_or(""));
 
 It looks like HOSTNAME is something Bash provides but not a standard environment variable. ZSH and Fish doesn’t have it.  
 ohhh 
 Ugly hack it is.

let
  hostname = builtins.readFile ./whereami;
  hostConfigPath = ./${hostname};
  hostConfig = if builtins.pathExists hostConfigPath
                 then import hostConfigPath
               else {};
in