From e40f40cf3b39b1060f948da903e44bdae6124184 Mon Sep 17 00:00:00 2001 From: Sebastian Moser Date: Sun, 10 Mar 2024 22:08:47 +0100 Subject: [PATCH] don't do the libvirt symlinks anymore, because they are buggy --- hosts/main.nix | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/hosts/main.nix b/hosts/main.nix index 716f6af..c652c11 100644 --- a/hosts/main.nix +++ b/hosts/main.nix @@ -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 ############################# environment.etc."host.conf" = { # needed so that firefox does not ignore the hosts file @@ -435,7 +443,7 @@ }; }; - # /* + /* system.activationScripts.setupLibvirt = lib.stringAfter [ "var" ] '' mkdir -p /var/lib/libvirt/storage 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 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 ###################################