mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 21:19:45 +01:00
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.
This commit is contained in:
parent
d7a70c87cd
commit
86217419e7
1 changed files with 1 additions and 0 deletions
|
@ -319,6 +319,7 @@ in
|
||||||
phases = [ "installPhase" ];
|
phases = [ "installPhase" ];
|
||||||
|
|
||||||
installPhase =
|
installPhase =
|
||||||
|
"mkdir -pv $out\n" +
|
||||||
concatStringsSep "\n" (
|
concatStringsSep "\n" (
|
||||||
mapAttrsToList (name: value:
|
mapAttrsToList (name: value:
|
||||||
"install -v -D -m${value.mode} ${value.source} $out/${value.target}"
|
"install -v -D -m${value.mode} ${value.source} $out/${value.target}"
|
||||||
|
|
Loading…
Reference in a new issue