From 41dc859d7ed956addd01579a114549c1984206c5 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 17 Oct 2015 06:30:20 +0200 Subject: allow nix-env -f --- default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/default.nix b/default.nix index b561cb7dd..7223a46e6 100644 --- a/default.nix +++ b/default.nix @@ -1,8 +1,10 @@ -{ current-date -, current-host-name -, current-user-name +{ current-date ? abort "current-date not defined" +, current-host-name ? abort "current-host-name not defined" +, current-user-name ? builtins.getEnv "LOGNAME" }: +assert current-user-name != ""; + let lib = import ; -- cgit v1.2.3