diff options
author | aszlig <aszlig@redmoonstudios.org> | 2014-12-15 19:12:58 +0100 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2014-12-15 19:16:43 +0100 |
commit | d85fabd68cb0477f7bda4af8a528e27ed7914932 (patch) | |
tree | 48954e740dafc0b5bbb1e8578cea4e3b0898a837 /nixos/modules/programs | |
parent | 5d67b17901ff2c9a18647bd9453c6b0d4294b875 (diff) | |
download | nixlib-d85fabd68cb0477f7bda4af8a528e27ed7914932.tar nixlib-d85fabd68cb0477f7bda4af8a528e27ed7914932.tar.gz nixlib-d85fabd68cb0477f7bda4af8a528e27ed7914932.tar.bz2 nixlib-d85fabd68cb0477f7bda4af8a528e27ed7914932.tar.lz nixlib-d85fabd68cb0477f7bda4af8a528e27ed7914932.tar.xz nixlib-d85fabd68cb0477f7bda4af8a528e27ed7914932.tar.zst nixlib-d85fabd68cb0477f7bda4af8a528e27ed7914932.zip |
nixos/virtualbox/hostonlyif: Fix writing to /root.
Creates unnecessary cruft in the root users home directory, which we really don't need. Except the log, but therefore we now cat the log to stderr and the private temporary directory is cleaned up afterwards. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'nixos/modules/programs')
-rw-r--r-- | nixos/modules/programs/virtualbox-host.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/programs/virtualbox-host.nix b/nixos/modules/programs/virtualbox-host.nix index f4c6b7587bda..dd6fbad48689 100644 --- a/nixos/modules/programs/virtualbox-host.nix +++ b/nixos/modules/programs/virtualbox-host.nix @@ -97,10 +97,13 @@ in path = [ virtualbox ]; serviceConfig.RemainAfterExit = true; serviceConfig.Type = "oneshot"; + serviceConfig.PrivateTmp = true; + environment.VBOX_USER_HOME = "/tmp"; script = '' if ! [ -e /sys/class/net/vboxnet0 ]; then VBoxManage hostonlyif create + cat /tmp/VBoxSVC.log >&2 fi ''; postStop = |