moved vm aliases to vfio.nix

This commit is contained in:
ISnortPennies 2023-02-04 23:15:47 -05:00
parent f049f7fe37
commit 0cec0448ce
4 changed files with 9 additions and 9 deletions

View file

@ -23,8 +23,6 @@
NIX_BUILD_SHELL = "zsh";
};
shellAliases = {
vm-start = "virsh start Windows";
vm-stop = "virsh shutdown Windows";
#make sudo use aliases
sudo = "sudo ";
#paste link trick

View file

@ -25,7 +25,13 @@
};
};
};
environment.systemPackages = with pkgs; [virt-manager];
environment = {
systemPackages = with pkgs; [virt-manager];
shellAliases = {
vm-start = "virsh start Windows";
vm-stop = "virsh shutdown Windows";
};
};
systemd.services.libvirtd.preStart = let
qemuHook = pkgs.writeScript "qemu-hook" ''
#!${pkgs.stdenv.shell}