don't do the libvirt symlinks anymore, because they are buggy

This commit is contained in:
Sebastian Moser
2024-03-10 22:08:47 +01:00
parent 38179e1cfe
commit e40f40cf3b

View File

@@ -110,6 +110,14 @@
}; };
# */ # */
# */
system.activationScripts.makeBinBash = lib.stringAfter [ "var" ] ''
# there is no /bin/bash
# https://discourse.nixos.org/t/add-bin-bash-to-avoid-unnecessary-pain/5673
ln -nsf /run/current-system/sw/bin/bash /bin/bash
'';
# */
################################ my youtube blocking service ############################# ################################ my youtube blocking service #############################
environment.etc."host.conf" = { environment.etc."host.conf" = {
# needed so that firefox does not ignore the hosts file # needed so that firefox does not ignore the hosts file
@@ -435,7 +443,7 @@
}; };
}; };
# /* /*
system.activationScripts.setupLibvirt = lib.stringAfter [ "var" ] '' system.activationScripts.setupLibvirt = lib.stringAfter [ "var" ] ''
mkdir -p /var/lib/libvirt/storage mkdir -p /var/lib/libvirt/storage
ln -nsf ${workDir}/vm/libvirt/my-image-pool.xml /var/lib/libvirt/storage/my-image-pool.xml ln -nsf ${workDir}/vm/libvirt/my-image-pool.xml /var/lib/libvirt/storage/my-image-pool.xml
@@ -445,14 +453,8 @@
ln -nsf ${workDir}/vm/qemu/$path /var/lib/libvirt/qemu/$path ln -nsf ${workDir}/vm/qemu/$path /var/lib/libvirt/qemu/$path
done done
''; '';
# */ # */
system.activationScripts.makeBinBash = lib.stringAfter [ "var" ] ''
# there is no /bin/bash
# https://discourse.nixos.org/t/add-bin-bash-to-avoid-unnecessary-pain/5673
ln -nsf /run/current-system/sw/bin/bash /bin/bash
'';
# */
############################## swap and hibernate ################################### ############################## swap and hibernate ###################################