summaryrefslogtreecommitdiffstats
path: root/modules/tv/sanitize.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2015-07-07 05:58:43 +0200
committertv <tv@krebsco.de>2015-07-07 05:58:43 +0200
commitd55f1c09c96f0cceaa84217f5dadb57bec7077ef (patch)
treedb1641a5bdacadf02925ee5dea350a53f270179a /modules/tv/sanitize.nix
parent49a199abebdec4e684dfde05a358f1d55020135e (diff)
tv cgit,sanitize: use empty directory from store
This is required for deploying to machines without /var/empty, like the nixos-install chroot.
Diffstat (limited to 'modules/tv/sanitize.nix')
-rw-r--r--modules/tv/sanitize.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/tv/sanitize.nix b/modules/tv/sanitize.nix
index b6c749b..adc8141 100644
--- a/modules/tv/sanitize.nix
+++ b/modules/tv/sanitize.nix
@@ -3,6 +3,6 @@
{
nixpkgs.config.packageOverrides = pkgs:
{
- nano = /var/empty;
+ nano = pkgs.runCommand "empty" {} "mkdir -p $out";
};
}