mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 08:53:56 -05:00
moved extra groups needed for vfio to vfio.nix
This commit is contained in:
parent
ad704d807c
commit
a774a19d6e
2 changed files with 4 additions and 1 deletions
|
|
@ -32,6 +32,9 @@
|
||||||
vm-stop = "virsh shutdown Windows";
|
vm-stop = "virsh shutdown Windows";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
users.users."${settings.username}".extraGroups = ["kvm" "libvirtd"];
|
||||||
|
|
||||||
systemd.services.libvirtd.preStart = let
|
systemd.services.libvirtd.preStart = let
|
||||||
qemuHook = pkgs.writeScript "qemu-hook" ''
|
qemuHook = pkgs.writeScript "qemu-hook" ''
|
||||||
#!${pkgs.stdenv.shell}
|
#!${pkgs.stdenv.shell}
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@
|
||||||
users."${settings.username}" = {
|
users."${settings.username}" = {
|
||||||
uid = 1000;
|
uid = 1000;
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = ["wheel" "audio" "networkmanager" "kvm" "libvirtd"];
|
extraGroups = ["wheel" "audio" "networkmanager"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
boot = {
|
boot = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue