remove tmpfile rule which reloaded libvirt.d every rebuild

This commit is contained in:
Gerg-L 2023-07-03 19:56:34 -04:00
parent ca1c54245f
commit a58ba87955
5 changed files with 14 additions and 7 deletions

View file

@ -29,6 +29,7 @@
<nvram>/var/lib/libvirt/qemu/nvram/Windows_VARS.fd</nvram>
<boot dev="hd"/>
<bootmenu enable="no"/>
<smbios mode='host'/>
</os>
<features>
<acpi/>

View file

@ -56,6 +56,7 @@
deadnix
statix
alejandra
nix-index
;
inherit (nvim-flake.packages.${pkgs.system}) neovim;
};

View file

@ -1,8 +1,4 @@
{
self,
pipewire_fix,
...
}: {
{pipewire_fix, ...}: {
pkgs,
lib,
config,
@ -108,6 +104,7 @@ in {
environment = {
systemPackages = [
pkgs.virt-manager
pkgs.dmidecode
];
shellAliases = {
vm-start = "virsh start Windows";
@ -162,6 +159,6 @@ in {
in [
"L /etc/Xorg/active.conf - - - - /etc/Xorg/2_mon.conf"
"L+ /var/lib/libvirt/hooks/qemu - - - - ${qemuHook}"
"L+ /var/lib/libvirt/qemu/Windows.xml - - - - ${self}/misc/Windows.xml"
"L+ /var/lib/libvirt/qemu/Windows.xml - - - - ${./Windows.xml}"
];
}

View file

@ -31,4 +31,12 @@
timeout = 0;
};
};
systemd.services.efibootmgr = {
serviceConfig.Type = "oneshot";
path = [pkgs.efibootmgr];
wantedBy = ["default.target"];
script = ''
efibootmgr -t 0
'';
};
}

View file

@ -17,7 +17,7 @@ _: {pkgs, ...}: {
fi
'';
bash.interactiveShellInit = ''
if [ $- == *i* ] && ! printenv PATH | grep -qc '/nix/store' && [ -z "$IN_NIX_SHELL" ] ; then
if [[ $- == *i* ]] && ! printenv PATH | grep -qc '/nix/store' && [ -z "$IN_NIX_SHELL" ] ; then
eval "$(direnv hook bash)"
fi
'';