mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
nix: libvirt
This commit is contained in:
parent
55931c0167
commit
efed8ac3de
2 changed files with 12 additions and 7 deletions
|
|
@ -19,5 +19,3 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,10 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
virt-manager
|
virt-manager
|
||||||
|
dnsmasq
|
||||||
|
virtiofsd
|
||||||
];
|
];
|
||||||
|
programs.virt-manager.enable = true;
|
||||||
virtualisation.libvirtd = {
|
virtualisation.libvirtd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
qemu = {
|
qemu = {
|
||||||
|
|
@ -19,4 +22,8 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
users.users.js0ny = {
|
||||||
|
extraGroups = ["libvirtd"];
|
||||||
|
};
|
||||||
|
networking.firewall.trustedInterfaces = ["virbr0"];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue