forked from mirrors/nixpkgs
02d26fc77d
other kinds of configurations (like the installation CD). svn path=/nixos/branches/modular-nixos/; revision=15864
4 lines
91 B
Nix
4 lines
91 B
Nix
name: default:
|
|
let value = builtins.getEnv name; in
|
|
if value == "" then default else value
|