From 31c602fa94ae1836be6d095ec4111d744bd2eb94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Fri, 22 Dec 2023 14:57:44 +0100 Subject: [PATCH] Keep VirtualBox out of my home dir --- hm/common.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/hm/common.nix b/hm/common.nix index 6cf4489..21428b1 100644 --- a/hm/common.nix +++ b/hm/common.nix @@ -386,6 +386,15 @@ in }; }; home = { + activation = { + # Prevent Virtualbox from creating a "VirtualBox VMs" folder in $HOME + setVirtualboxSettings = lib.hm.dag.entryAfter [ "writeBoundary" ] '' + if command -v VBoxManage > /dev/null + then + VBoxManage setproperty machinefolder ${config.xdg.dataHome}/virtualbox + fi + ''; + }; stateVersion = "23.11"; language = { base = "en_US.UTF-8"; @@ -411,6 +420,11 @@ in zsh-history-substring-search powerline-go + # nix utils + nix-diff + nix-tree + nix-output-monitor + # terminal essentials file moreutils