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
|
|
@ -10,14 +10,12 @@
|
||||||
keyboards = {
|
keyboards = {
|
||||||
externalKeyboard = {
|
externalKeyboard = {
|
||||||
ids = [ "0b05:19b6:d167885d" ]; # ASUS Keyboard
|
ids = [ "0b05:19b6:d167885d" ]; # ASUS Keyboard
|
||||||
settings = {
|
settings = {
|
||||||
main = {
|
main = {
|
||||||
capslock = "overload(control, esc)";
|
capslock = "overload(control, esc)";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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