From 86217419e7085b501916db127b643136a7c915d6 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Tue, 17 Jan 2017 22:12:51 +0100 Subject: [PATCH] home-environment: handle no home files If no files should be installed into the home directory then an error would occur since the directory holding the files would never be created. With this change the directory is unconditionally created. --- modules/home-environment.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/home-environment.nix b/modules/home-environment.nix index 4df0c4711..7e3775cd3 100644 --- a/modules/home-environment.nix +++ b/modules/home-environment.nix @@ -319,6 +319,7 @@ in phases = [ "installPhase" ]; installPhase = + "mkdir -pv $out\n" + concatStringsSep "\n" ( mapAttrsToList (name: value: "install -v -D -m${value.mode} ${value.source} $out/${value.target}"