Keep VirtualBox out of my home dir

This commit is contained in:
Geoffrey Frogeye 2023-12-22 14:57:44 +01:00
parent 06f219f0c8
commit 31c602fa94
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8

View file

@ -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