tv cgit,sanitize: use empty directory from store

This is required for deploying to machines without /var/empty, like the
nixos-install chroot.
This commit is contained in:
tv 2015-07-07 05:58:43 +02:00
parent 366373e9c6
commit 36d7524038
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ in
name = "fcgiwrap";
uid = 2851179180; # genid fcgiwrap
group = "fcgiwrap";
home = "/var/empty";
home = toString (pkgs.runCommand "empty" {} "mkdir -p $out");
};
users.extraGroups = lib.singleton {

View File

@ -3,6 +3,6 @@
{
nixpkgs.config.packageOverrides = pkgs:
{
nano = /var/empty;
nano = pkgs.runCommand "empty" {} "mkdir -p $out";
};
}