Greetings to everyone,
Nixos is awesome, I love it, I also installed hyprland on it and it became legendary. It does more than my every job. I have one little thing left to do with Virt-manager. First I want to show my configuration and then I’ll explain the problem.
lspci -k | grep -E "vfio-pci|AMD"
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cedar [Radeon HD 5000/6000/7350/8350 Series]
Kernel driver in use: vfio-pci
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Cedar HDMI Audio [Radeon HD 5400/6300/7300 Series]
Kernel driver in use: vfio-pci
NixOS-Hyprland/hosts/yns/config.nix
boot = {
kernelPackages = pkgs.linuxPackages_zen; # zen Kernel
#kernelPackages = pkgs.linuxPackages_latest; # KernelkernelParams = [ "systemd.mask=systemd-vconsole-setup.service" "systemd.mask=dev-tpmrm0.device" #this is to mask that stupid 1.5 mins systemd bug "nowatchdog" "modprobe.blacklist=sp5100_tco" #watchdog for AMD "modprobe.blacklist=iTCO_wdt" #watchdog for Intel "intel_iommu=on" ]; kernelModules = [ "vfio_pci" "vfio" "vfio_iommu_type1" ]; extraModprobeConfig = '' options vfio-pci ids=1002:68f9,1002:aa68 ''; .....
virtualisation.spiceUSBRedirection.enable = true;
users.users.yunus.extraGroups = [ “libvirtd” ];virtualisation.libvirtd = {
enable = true;
qemu.vhostUserPackages = with pkgs; [ virtiofsd ];
};virtualisation.podman = {
enable = false;
dockerCompat = false;
defaultNetwork.settings.dns_enabled = false;
};
packages-fonts.nix
nixpkgs.config.allowUnfree = true;
services.spice-vdagentd.enable = true;
services.qemuGuest.enable = true;environment.systemPackages = (with pkgs; [
virt-manager
spice
spice-vdagent
spice-gtk
virt-viewer
These are my settings. I don’t know if I wrote too much code with the setting, I would be glad if a friend who knows enlightens me. As for my problem:
I installed win11 with virt-manager, added the video card as pci devices, did the driver installation and it’s done. The only problem is that I can’t paste what I copied to Nixos into the win11 virtual machine. Before I connected an external video card there was no problem, with the video card this problem occurred.
How can I fix the problem, I’d appreciate your help.