about summary refs log tree commit diff
path: root/nixos/lib/from-env.nix
blob: 6bd71e40e9a1abb114d53cb2162018331124a59f (plain) (blame)
1
2
3
4
# TODO: remove this file. There is lib.maybeEnv now
name: default:
let value = builtins.getEnv name; in
if value == "" then default else value